27 lines
516 B
Plaintext
27 lines
516 B
Plaintext
|
|
||
|
{{alias}}( iterator )
|
||
|
Computes the product of all iterated values.
|
||
|
|
||
|
For iterators which can generate many values or which may output large
|
||
|
numbers, care should be taken to prevent overflow.
|
||
|
|
||
|
Parameters
|
||
|
----------
|
||
|
iterator: Object
|
||
|
Input iterator.
|
||
|
|
||
|
Returns
|
||
|
-------
|
||
|
out: number|null
|
||
|
Product.
|
||
|
|
||
|
Examples
|
||
|
--------
|
||
|
> var arr = {{alias:@stdlib/array/to-iterator}}( [ 1.0, 2.0, 3.0, 4.0 ] );
|
||
|
> var s = {{alias}}( arr )
|
||
|
24.0
|
||
|
|
||
|
See Also
|
||
|
--------
|
||
|
|