Skip to content

Latest commit

 

History

History
97 lines (71 loc) · 2.16 KB

DOCUMENTATION.md

File metadata and controls

97 lines (71 loc) · 2.16 KB

Functions

div([...numbers])number

Divides a series or array of numbers

mult([...numbers])number

Multiplies a series or array of numbers

sub([...numbers])number

Subtracts a series or array of numbers

sum([...numbers])number

Sums a series or array of numbers

div([...numbers]) ⇒ number

Divides a series or array of numbers

Kind: global function
Returns: number - Returns the serial division of the numbers passed

Param Type Description
[...numbers] Array.<number> A series or array of numbers

Example

div(1, 3, 4) // 8

div([3, 6]) // 9

div() // 0

mult([...numbers]) ⇒ number

Multiplies a series or array of numbers

Kind: global function
Returns: number - Returns the product of the numbers passed

Param Type Description
[...numbers] Array.<number> A series or array of numbers

Example

mult(1, 3, 4) // 8

mult([3, 6]) // 9

mult() // 0

sub([...numbers]) ⇒ number

Subtracts a series or array of numbers

Kind: global function
Returns: number - Returns the difference of the numbers passed

Param Type Description
[...numbers] Array.<number> A series or array of numbers

Example

sub(9, 5, 2) // 2

sub([6, 3]) // 3

sub() // 0

sum([...numbers]) ⇒ number

Sums a series or array of numbers

Kind: global function
Returns: number - Returns the sum of the numbers passed

Param Type Description
[...numbers] Array.<number> A series or array of numbers

Example

sum(1, 3, 4) // 8

sum([3, 6]) // 9

sum() // 0