{"name":"array-shuffle","version":"2.0.0","description":"Randomize the order of items in an array","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/array-shuffle.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["array","list","shuffle","sort","random","rand","fisher","yates","durstenfeld"],"devDependencies":{"ava":"^3.13.0","tsd":"^0.13.1","xo":"^0.35.0"},"gitHead":"c5c93bfb2c68deb04790f33deb1864392ab24be2","bugs":{"url":"https://github.com/sindresorhus/array-shuffle/issues"},"homepage":"https://github.com/sindresorhus/array-shuffle#readme","_id":"array-shuffle@2.0.0","_nodeVersion":"10.22.1","_npmVersion":"6.14.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-rJTchCppiO6QsQnN51KDH1cgMYm13B+ybxFS5GgdBdTTHpZcrq3M7SOBgzp+L9fqqnjkFDiwdEVcX1wINgl9DQ==","shasum":"fd36437cd7997d557055283c946e46379a7cd343","tarball":"http://registry-npm.ywwl.com/array-shuffle/download/array-shuffle-2.0.0.tgz","fileCount":5,"unpackedSize":3019,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyHF4CRA9TVsSAnZWagAAQRUP/3+kvfTYoo6B/fpupjOB\ntERXolYj33rT7zTppKt12H1QNHsn61MG5AnAUNHfjpv9EdIG9esaQ5HpZ/9g\nl0nJGYhPuXVZIUvunRiSJG3AvqBvVWA6jLjhG+dr0X34LvShE0l3zYDTwBG9\nYD6zscJ/tK0PjFo7RG1l6fwY/Y4CRbxIOvkrWrqkU7a8aeRd0G5mAsFyRtDJ\nc+BdPKX93gcUaiM/PJ+Mi++kiqitJQFNJEJD6qvajPkzgC+3vBUjTLRN61U5\n84RRqdRNtYPkfbvQAZDPuGnXkJljfzqmzkOU2rI8lHdLLt6MiQrxltbe8Wmc\nbwrBL2SauKtVPIxFgk47r7/CB/ahH+7UWiOs8EcOZqJyovbOBU9s9U1oEQWk\ns4gYdWK5956ObRVP7OScAUMmjNziXfgQvIn/B4nzlq581nOGiTSPQqCFE3VS\nyMDiLt4P10DUcLNNW7UNusDdRLlV9j9g1xOsTwDCEewOFxhwxrndZsqXiz5w\nN8/UwZkU7yEG1kOm3H/9p9GDdK7cEMxAwCEerbU+y/xzBkbgPBsJr4Lcl+A4\nfi0LIpKaiabvE+vVgEq0ZrSILIwHphEF+ToHT5d7UvaUKQo9flJZ7uEFAPko\nwUHEBG/EiRI4YWfPg0kxnZMm3WkvxKlSbjptx4YSqHCSFw3igXpW7nVVSGPE\nb89C\r\n=koXU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCq929Pdj0C/chQKDYditmskXngJy13LR+V88hSP6R8TAIgPnzBdNgWNi6+Lui7WVmaCkfGkCJhpbcgM6yDeM1FeHg="}],"size":1738,"noattachment":false,"key":"/array-shuffle/-/array-shuffle-2.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/array-shuffle_2.0.0_1606971767556_0.5324534133108823"},"_hasShrinkwrap":false,"readme":"# array-shuffle\n\n> Randomize the order of items in an array\n\nUses the [Durstenfeld algorithm](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#The_modern_algorithm) which is based on the [Fisher–Yates algorithm](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle).\n\n## Install\n\n```\n$ npm install array-shuffle\n```\n\n## Usage\n\n```js\nimport arrayShuffle from 'array-shuffle';\n\nconst shuffled = arrayShuffle([1, 2, 3, 4, 5, 6]);\n//=> [3, 5, 4, 1, 2, 6]\n```\n\n## API\n\n### arrayShuffle(array)\n\n#### array\n\nType: `Array`\n\nThe array to shuffle.\n","publish_time":1606971767709,"_cnpm_publish_time":1606971767709,"dist-tags":{"latest":"4.1.0"}}