Ensures that the given input is returned as an array.
This function takes a value that might be a single item, an array, or undefined and returns it as an array:
undefined
The type of the elements in the array.
The value that may be a single item, an array, or undefined.
An array containing the input value(s). If the input is undefined, an empty array is returned.
Ensures that the given input is returned as an array.
This function takes a value that might be a single item, an array, or
undefined
and returns it as an array:undefined
, an empty array is returned.