Skip to content

Frederic-Ferreira/shakeArray-npm-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shakeArray

shakeArray is a function to randomize the position of elements in an array.

Installation

Use the package manager npm to install shakeArray.

npm install shake-array

Usage

import shakeArray from 'shake-array';

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

const modifiedArr = shakeArray(arr);

console.log(modifiedArr);
// expected output : [2, 5, 1, 3, 4]

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published