aboutsummaryrefslogtreecommitdiff
path: root/node_modules/lodash/_baseShuffle.js
blob: 023077ac4e825cdbdaff6893ef3caff9a474f600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var shuffleSelf = require('./_shuffleSelf'),
    values = require('./values');

/**
 * The base implementation of `_.shuffle`.
 *
 * @private
 * @param {Array|Object} collection The collection to shuffle.
 * @returns {Array} Returns the new shuffled array.
 */
function baseShuffle(collection) {
  return shuffleSelf(values(collection));
}

module.exports = baseShuffle;