array.from

A new array holding the given values, in order. The element type is the type of the values (int and float mix as float).

array.from(...values: any) -> array<any>

Parameters

Example

levels = array.from(1.0, 1.5, 2.0)