repl.txt (516B)
1 2 {{alias}}( iterator ) 3 Computes the product of all iterated values. 4 5 For iterators which can generate many values or which may output large 6 numbers, care should be taken to prevent overflow. 7 8 Parameters 9 ---------- 10 iterator: Object 11 Input iterator. 12 13 Returns 14 ------- 15 out: number|null 16 Product. 17 18 Examples 19 -------- 20 > var arr = {{alias:@stdlib/array/to-iterator}}( [ 1.0, 2.0, 3.0, 4.0 ] ); 21 > var s = {{alias}}( arr ) 22 24.0 23 24 See Also 25 -------- 26