aswi2020vldc-gitlab/templetes/node_modules/lodash/_baseShuffle.js @ 5fded919
1 | 3a515b92 | cagy | var shuffleSelf = require('./_shuffleSelf'), |
---|---|---|---|
2 | values = require('./values'); |
||
3 | |||
4 | /**
|
||
5 | * The base implementation of `_.shuffle`.
|
||
6 | *
|
||
7 | * @private
|
||
8 | * @param {Array|Object} collection The collection to shuffle.
|
||
9 | * @returns {Array} Returns the new shuffled array.
|
||
10 | */
|
||
11 | function baseShuffle(collection) { |
||
12 | return shuffleSelf(values(collection)); |
||
13 | }
|
||
14 | |||
15 | module.exports = baseShuffle; |