1.0.7 • Published 3 years ago
shuffle-my-array v1.0.7
Array Shuffle
It's a awesome function to help you to reorder your array elements.
Install
npm i shuffle-my-array
Quick Tour
you can import the library with difference ways
Import the library:
// ESM
import { arrayShuffle } from 'shuffle-my-array';
// or
// commonjs
const { arrayShuffle } = require('shuffle-my-array);
example:
const arr1 = [1, 2, 3, 4];
arrayShuffle(arr1);
// arr1 maybe is [2, 4, 1, 3]
const arr2 = [1]
arrayShuffle(arr2)
// arr2 equal [1]
Contact
My blog is 妙才的博客, also you can send me a email: rivenqinyy#gmail.com
,thanks.