@writetome51/array-get-shuffled
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

getShuffled(array): any[]

Returns a new, shuffled version of array. It does not modify array.

Example

let arr = [1,2,3,4,5,6,7,8];
getShuffled(arr);
// --> [4,8,3,1,5,7,6,2]

Installation

npm i @writetome51/array-get-shuffled

Loading

import {getShuffled} from '@writetome51/array-get-shuffled';

Package Sidebar

Install

npm i @writetome51/array-get-shuffled

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

2.79 kB

Total Files

5

Last publish

Collaborators

  • writetome51