From 99c1d9af689e5325f3cf535c4007b3aeb8325229 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 10 Jan 2023 14:54:04 +0100 Subject: Update - This is an automated commit --- alarm/node_modules/lodash/sampleSize.js | 37 --------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 alarm/node_modules/lodash/sampleSize.js (limited to 'alarm/node_modules/lodash/sampleSize.js') diff --git a/alarm/node_modules/lodash/sampleSize.js b/alarm/node_modules/lodash/sampleSize.js deleted file mode 100644 index a303686..0000000 --- a/alarm/node_modules/lodash/sampleSize.js +++ /dev/null @@ -1,37 +0,0 @@ -var arraySampleSize = require('./_arraySampleSize'), - baseSampleSize = require('./_baseSampleSize'), - isArray = require('./isArray'), - isIterateeCall = require('./_isIterateeCall'), - toInteger = require('./toInteger'); - -/** - * Gets `n` random elements at unique keys from `collection` up to the - * size of `collection`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Collection - * @param {Array|Object} collection The collection to sample. - * @param {number} [n=1] The number of elements to sample. - * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. - * @returns {Array} Returns the random elements. - * @example - * - * _.sampleSize([1, 2, 3], 2); - * // => [3, 1] - * - * _.sampleSize([1, 2, 3], 4); - * // => [2, 3, 1] - */ -function sampleSize(collection, n, guard) { - if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) { - n = 1; - } else { - n = toInteger(n); - } - var func = isArray(collection) ? arraySampleSize : baseSampleSize; - return func(collection, n); -} - -module.exports = sampleSize; -- cgit