Skip to content

Commit

Permalink
docs: improve sum description
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Aug 6, 2024
1 parent 52e2cda commit d9280fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/number/sum.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* Sum all numbers in an array. Optionally provide a function to
* convert objects in the array to number values.
* Add up numbers related to an array in 1 of 2 ways:
* 1. Sum all numbers in an array of numbers
* 2. Sum all numbers returned by a callback function that maps
* each item in an array to a number.
*
* @see https://radashi-org.github.io/reference/array/sum
* @example
Expand Down

0 comments on commit d9280fa

Please sign in to comment.