array.prototype.randommap
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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 ]

Package Sidebar

Install

npm i array.prototype.randommap

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

1.42 kB

Total Files

4

Last publish

Collaborators

  • mathias54