permutation
make permutation of a array given.
Install
This method permutate the item in a array given
$ npm install arraypermutation-node
Usage
const permutate = permutateright12 // -> [2,1]permutateright123456 // -> [6,1,2,3,4,5] permutateleft12 // -> [2,1]permutateleft1234// -> [2,3,4,1]permutateleft1 // [1]permutateright1 // [1]
API Documentation permutation -> object
permutation.right(array) -> array
The param is the right what will be permutated to right. The array is passed by reference.
permutation.left(array) -> array
The param is the left what will be permutated to left. The array is passed by reference.