neida
Modules
- add ⇒
number
Add two values.
- addOne ⇒
number
Increment value by 1.
- chunk ⇒
Array.<Array.<Any>>
Group elements into fixed-length chunks.
- subtractOne ⇒
number
Decrement value by 1.
- sum ⇒
number
Sum multiple values.
Typedefs
- Any :
*
Any type.
number
add ⇒ Add two values.
Returns: number
- sum of both values
See
Param | Type |
---|---|
n | number |
m | number |
Example
sum(2, 3)
// => 5
number
addOne ⇒ Increment value by 1.
Returns: number
- value incremented by 1
See
Param | Type |
---|---|
n | number |
Example
addOne(5)
// => 6
Array.<Array.<Any>>
chunk ⇒ Group elements into fixed-length chunks.
Returns: Array.<Array.<Any>>
- fixed-length chunks
Param | Type |
---|---|
o | Object |
o.collection | Array.<Any> |
o.length | number |
Example
chunk({
collection: ['a', 'b', 'c', 'd', 'e', 'f'],
length: 2
})
// => [
// ['a', 'b'],
// ['c', 'd'],
// ['e', 'f']
// ]
number
subtractOne ⇒ Decrement value by 1.
Returns: number
- value decremented by 1
See: addOne
Param | Type |
---|---|
n | number |
Example
subtractOne(5)
// => 4
number
sum ⇒ Sum multiple values.
Returns: number
- sum of arguments
See: add
Param | Type |
---|---|
...n | number |
Example
sum(2, 3, 5)
// => 10
*
Any : Any type.
Kind: global typedef