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
valuesany: The elements, in order, all of one type (int and float mix as float).
Example
levels = array.from(1.0, 1.5, 2.0)