es-toolkit 1.16.0-dev.477 → 1.16.0-dev.478
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/math/sumBy.d.mts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* If the array is empty, this function returns `0`.
|
|
6
6
|
*
|
|
7
7
|
* @template T - The type of elements in the array.
|
|
8
|
-
* @param {T[]} items An array to calculate the
|
|
8
|
+
* @param {T[]} items An array to calculate the sum.
|
|
9
9
|
* @param {(element: T) => number} getValue A function that selects a numeric value from each element.
|
|
10
|
-
* @returns {number} The
|
|
10
|
+
* @returns {number} The sum of all the numbers as determined by the `getValue` function.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* sumBy([{ a: 1 }, { a: 2 }, { a: 3 }], x => x.a); // Returns: 6
|
package/dist/math/sumBy.d.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* If the array is empty, this function returns `0`.
|
|
6
6
|
*
|
|
7
7
|
* @template T - The type of elements in the array.
|
|
8
|
-
* @param {T[]} items An array to calculate the
|
|
8
|
+
* @param {T[]} items An array to calculate the sum.
|
|
9
9
|
* @param {(element: T) => number} getValue A function that selects a numeric value from each element.
|
|
10
|
-
* @returns {number} The
|
|
10
|
+
* @returns {number} The sum of all the numbers as determined by the `getValue` function.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* sumBy([{ a: 1 }, { a: 2 }, { a: 3 }], x => x.a); // Returns: 6
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-toolkit",
|
|
3
3
|
"description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
|
|
4
|
-
"version": "1.16.0-dev.
|
|
4
|
+
"version": "1.16.0-dev.478+55fae71d",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|