sum-array

v2.1.1arrow_drop_down
v2.1.1
v2.1.0
v2.0.9
v2.0.8
v2.0.7
v2.0.6
v2.0.5
v2.0.1
STATUS
Passing
DOWNLOADS
819
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
511 B
return the sum in array of numbers
1 contributor
Install sum-array as a package?
Copied
npm i @bit/joshk.jotils.sum-array
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
sumArray (
array:Array<number>
) : number

return the sum in array of numbers

Example
import { sumArray } from '@bit/joshk.jotils.sum-array'
export default sumArray([1,2,3]) // => 6
Argument
array: Array<number>

an array of numbers

Returns
number

sum of numbers

Test Summary

sumArray return the sum in array of numbers

Pass
Help and resources