@design-automation/mobius-inline-funcs
Version:
Mobius Spatial Information Model
15 lines (14 loc) • 383 B
TypeScript
/**
* Returns the cube of the number.
* \n
* If the input is a list, the result will also be a list.
* \n
* ```
* cube([1, 2, 3, 4]) // [1, 8, 27, 64]
* cube(5) // 125
* ```
*
* @param list A number or a list containing numbers.
* @returns A number or a list containing numbers.
*/
export declare function cube(list: number | number[]): any;