@design-automation/mobius-inline-funcs
Version:
Mobius Spatial Information Model
13 lines (12 loc) • 334 B
TypeScript
/**
* Returns the product of all values in a list.
* \n
* ```
* prod([2, 3]) // 6
* prod([2, 3, 4]) // 24
* prod([[2, 5], [4, 3]]) // 120
* ```
* @param list A list containing numbers.
* @returns A number (The total product).
*/
export declare function prod(list: number | number[]): any;