@unction/arrayify
v7.13.0
Published
Takes a value and turns it into an array of that value, unless the value is already an array
Downloads
106
Readme
@unction/arrayify
A => [A] | A
Takes a value and turns it into an array of that value, unless the value is already an array.
arrayify("a")
returns
["a"]
arrayify(["a"])
returns
["a"]