Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shuffle and Split

Shuffles and split an array into groups.

var shuffleAndSplit = require('shuffle-and-split')
var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]

shuffleAndSplit(arr, 3) 

// result 
// [
//   [ 8, 3, 11, 2 ], 
//   [ 1, 7, 6, 10 ], 
//   [ 9, 5, 12, 4 ]
// ]

Enjoy.

About

Shuffles and splits and array into equal groups

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages