mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-11 06:04:55 +08:00
DISABLE_THIRD_PARTY_CHECK=new npm module causes package-lock change We can get rid of a custom script and use ESLint for these rules. Additionally this means editors will highlight the issue in the editor. Change-Id: I552b52e7f07b4e7430b3f685dbc3b5fad36ffff2 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2052167 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
23 lines
472 B
JavaScript
23 lines
472 B
JavaScript
import _curry1 from './internal/_curry1.js';
|
|
import sum from './sum.js';
|
|
|
|
/**
|
|
* Returns the mean of the given list of numbers.
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.14.0
|
|
* @category Math
|
|
* @sig [Number] -> Number
|
|
* @param {Array} list
|
|
* @return {Number}
|
|
* @see R.median
|
|
* @example
|
|
*
|
|
* R.mean([2, 7, 9]); //=> 6
|
|
* R.mean([]); //=> NaN
|
|
*/
|
|
var mean = /*#__PURE__*/_curry1(function mean(list) {
|
|
return sum(list) / list.length;
|
|
});
|
|
export default mean; |