demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/lodash-4.17.20/shuffle.js

Path
demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/lodash-4.17.20/shuffle.js
Status
scanned
Type
file
Name
shuffle.js
Extension
.js
Programming language
JavaScript
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
678 (678 bytes)
MD5
205fd973e85aa31437d59cba5e183269
SHA1
1d035fe3d9776decf38cab2e19e2b2da99aa5dfe
SHA256
9404bfe3f70e2efd6a0c1f126d15a2b49f0d6afc26a9a3dd953f451c3cb2334d
SHA512

      
    
SHA1_git
2b72da7cd6dc634ea9e9175fdd28ac556173a427
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
shuffle.js | 678 bytes |

var arrayShuffle = require('./_arrayShuffle'), baseShuffle = require('./_baseShuffle'), isArray = require('./isArray'); /** * Creates an array of shuffled values, using a version of the * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle). * * @static * @memberOf _ * @since 0.1.0 * @category Collection * @param {Array|Object} collection The collection to shuffle. * @returns {Array} Returns the new shuffled array. * @example * * _.shuffle([1, 2, 3, 4]); * // => [4, 1, 3, 2] */ function shuffle(collection) { var func = isArray(collection) ? arrayShuffle : baseShuffle; return func(collection); } module.exports = shuffle;
URL Start line End line
https://en.wikipedia.org/wiki/Fisher-Yates_shuffle 7 7
Package URL License Primary language
pkg:npm/acme-demo-app@1.0.0 JavaScript
pkg:npm/lodash@4.17.20 mit JavaScript