I find myself writing item = item instanceof Array ? item : [item]
a lot, so I decided to make a simple library to does
it for me. A few examples:
toArray = ; console; //["hello-world!"]console; //["hello-world!"]console; //[]
I find myself writing item = item instanceof Array ? item : [item]
a lot, so I decided to make a simple library to does
it for me. A few examples:
toArray = ; console; //["hello-world!"]console; //["hello-world!"]console; //[]
npm i toarray
10,756
0.0.1
BSD