enum-permutate

1.1.1 • Public • Published

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

Package Sidebar

Install

npm i enum-permutate

Weekly Downloads

112

Version

1.1.1

License

MIT

Last publish

Collaborators

  • incessantmeraki