Skip to content

SubhamSengupta/random-groups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

rand-groups

Make any number of random groups from an array of elements.

Usage:

Call groups with array of elements to get randomized groups of length numberOfGroups

const groups = require('random-groups');
var array = ["Apple", "Banana", "Mango", "Orange"];
var numberOfGroups = 2;
console.log(groups(array, numberOfGroups));
// [ ["Banana", "Mango"], ["Apple", "Orange"] ]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published