require("js-whatever/js/ensure-array")(value) → {Array}
Function which ensures an array is present. Useful for dealing with the results of JSON serialized
using the Badgerfish convention
Parameters:
| Name | Type | Description |
|---|---|---|
value |
* | Value to ensure is an array |
- Source:
Returns:
value if value is an array, a singleton array containing value for truthy values, and the
empty array for falsy values
- Type
- Array
- Source: