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