1.1.1 • Published 6 years ago

enum-permutate v1.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

enum-permutate

Build Status

generates all possible arrangement of elements in a given array

Usage

Example

  //generate all possible ways three names can be arranged 

  var permutate = require('enum-permutate')
  
  var arr = ['alice', 'bob', 'eve']

  var result = permutate(arr) 
  console.log(result)

API

require('enum-permutate')(arr)

returns an array containing all possible arrrangement of elements in array arr

License

MIT