Skip to content

toArray()

Wraps a value in an array when it is not already an array.

Example:

ts
toArray('item'); // ['item']

Released under the MIT License.