您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

15 行
371 B

3 年前
  1. var shuffleSelf = require('./_shuffleSelf'),
  2. values = require('./values');
  3. /**
  4. * The base implementation of `_.shuffle`.
  5. *
  6. * @private
  7. * @param {Array|Object} collection The collection to shuffle.
  8. * @returns {Array} Returns the new shuffled array.
  9. */
  10. function baseShuffle(collection) {
  11. return shuffleSelf(values(collection));
  12. }
  13. module.exports = baseShuffle;