easy-shuffle
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Shuffle Array

Simplest shuffle array algorithm.

Installation

$ npm install easy-shuffle

Usage

const shuffle = require('easy-shuffle');

const array = [1, 2, 3, 4, 5];

const shuffledArray = shuffle(array);

console.log(shuffledArray) // [ 4, 1, 2, 5, 3 ];

License

MIT License. Copyright (c) 2022

Package Sidebar

Install

npm i easy-shuffle

Weekly Downloads

2

Version

1.0.5

License

MIT

Unpacked Size

3.99 kB

Total Files

6

Last publish

Collaborators

  • enricky