Skip to content

unctionjs/arrayify

Repository files navigation

@unction/arrayify

Tests Stability Dependencies

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"]