diff options
Diffstat (limited to 'alarm/node_modules/lodash/sample.js')
-rw-r--r-- | alarm/node_modules/lodash/sample.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/alarm/node_modules/lodash/sample.js b/alarm/node_modules/lodash/sample.js deleted file mode 100644 index 39c3560..0000000 --- a/alarm/node_modules/lodash/sample.js +++ /dev/null @@ -1,24 +0,0 @@ -var arraySample = require('./_arraySample'), - baseSample = require('./_baseSample'), - isArray = require('./isArray'); - -/** - * Gets a random element from `collection`. - * - * @static - * @memberOf _ - * @since 2.0.0 - * @category Collection - * @param {Array|Object} collection The collection to sample. - * @returns {*} Returns the random element. - * @example - * - * _.sample([1, 2, 3, 4]); - * // => 2 - */ -function sample(collection) { - var func = isArray(collection) ? arraySample : baseSample; - return func(collection); -} - -module.exports = sample; |