UNPKG

@design-automation/mobius-inline-funcs

Version:
15 lines (14 loc) 383 B
/** * 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;