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.
@@ -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 average.
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 average of all the numbers as determined by the `getValue` function.
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
@@ -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 average.
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 average of all the numbers as determined by the `getValue` function.
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.477+d02ef354",
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": {