From 3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 23 Feb 2023 19:34:56 +0100 Subject: Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated) --- school/node_modules/lodash/meanBy.js | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 school/node_modules/lodash/meanBy.js (limited to 'school/node_modules/lodash/meanBy.js') diff --git a/school/node_modules/lodash/meanBy.js b/school/node_modules/lodash/meanBy.js deleted file mode 100644 index b031671..0000000 --- a/school/node_modules/lodash/meanBy.js +++ /dev/null @@ -1,31 +0,0 @@ -var baseIteratee = require('./_baseIteratee'), - baseMean = require('./_baseMean'); - -/** - * This method is like `_.mean` except that it accepts `iteratee` which is - * invoked for each element in `array` to generate the value to be averaged. - * The iteratee is invoked with one argument: (value). - * - * @static - * @memberOf _ - * @since 4.7.0 - * @category Math - * @param {Array} array The array to iterate over. - * @param {Function} [iteratee=_.identity] The iteratee invoked per element. - * @returns {number} Returns the mean. - * @example - * - * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }]; - * - * _.meanBy(objects, function(o) { return o.n; }); - * // => 5 - * - * // The `_.property` iteratee shorthand. - * _.meanBy(objects, 'n'); - * // => 5 - */ -function meanBy(array, iteratee) { - return baseMean(array, baseIteratee(iteratee, 2)); -} - -module.exports = meanBy; -- cgit