Comparing version 3.1.0 to 3.2.0
@@ -44,3 +44,3 @@ /* | ||
export { yieldCombinationsWithoutRepetition, uniqueProgressiveIncrementalCombinations, yieldUniqueProgressiveIncrementalCombinations, yieldAllSubsequences, yieldUniqueSubsequences } from "./modules/combinatorics"; | ||
export { round, sum } from "./modules/math"; | ||
export { round, sum, mean } from "./modules/math"; | ||
export { unshiftArray, cloneArray, arraySliceFromValueToValue, areArrayItemsAllCoercibleToNumber, isArray, arrayOrArrayLike, lastOfArray, firstOfArray, arrayFindReverse, arrayMax, arrayMin } from "./modules/array"; | ||
@@ -47,0 +47,0 @@ export { parseCSSText, style, transform } from "./modules/css-in-js"; |
@@ -51,2 +51,12 @@ /* | ||
} | ||
/** | ||
* Computes the mean of the given numbers. | ||
* | ||
* @param {...any} numbers The numbers. | ||
* @return {number} The mean. | ||
*/ | ||
export function mean(...numbers) { | ||
return sum(...numbers) / numbers.length; | ||
} | ||
//# sourceMappingURL=math.js.map |
{ | ||
"name": "js-utl", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "A collection of JS utility functions to be used across several applications or libraries.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -164,3 +164,3 @@ /* | ||
} from "./modules/combinatorics"; | ||
export { round, sum } from "./modules/math"; | ||
export { round, sum, mean } from "./modules/math"; | ||
export { | ||
@@ -167,0 +167,0 @@ unshiftArray, |
@@ -51,1 +51,11 @@ /* | ||
} | ||
/** | ||
* Computes the mean of the given numbers. | ||
* | ||
* @param {...any} numbers The numbers. | ||
* @return {number} The mean. | ||
*/ | ||
export function mean(...numbers) { | ||
return sum(...numbers) / numbers.length; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1822114
20761