Normalizes data that is a rest parameter or an array into an array with a depth of 1.
Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
ItemType | No | The data that must satisfy RestOrArray. |
Name | Type | Optional | Description |
---|---|---|---|
arr | RestOrArray<ItemType> | No | The (possibly variadic) data to normalize |