array.prototype.randommap
v1.0.2
Published
Randomly Sorted Results and Array.prototype.map combined
Downloads
3
Readme
array.prototype.randomMap
Apply the same map
operations and get a new array sorted randomly.
Instalation
npm install array.prototype.randommap
Simple Usage
import 'array.prototype.randommap'
const array = [1, 2, 3, 4, 5, 6];
array.randomMap(item => item * 2);
// [ 8, 12, 2, 6, 4, 10 ]