usage.jsvar permutation = require('array-permutation-simple') console.log(permutation([ 1, 3, 5 ]))
output[ [ 1, 3, 5 ], [ 1, 5, 3 ], [ 3, 1, 5 ], [ 3, 5, 1 ], [ 5, 1, 3 ], [ 5, 3, 1 ] ]