of

Bun

Symbol

ArrayConstructor.of

of<T>(...items: T[]): T[]

Returns a new array from a set of elements.

@param items

A set of elements to include in the new array object.