Skip to content

coderaiser/groupify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Groupify License NPM version Dependency Status Build Status

Divide array by n elements in groups.

Install

npm i groupify --save
bower i groupify --save

How to use?

groupify(3, [1,2,3,4,5,6]);
// returns
[[1,2], [3,4], [5,6]]

License

MIT