to-array6.7m0.1.4Turn an array like into an array
RaynosIl y a about 3 years toarray44.2kBSD0.0.1I 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:
crcnIl y a about 3 years es-iterator-helpers71.6mMIT1.2.1An ESnext spec-compliant iterator helpers shim/polyfill/replacement that works as far down as ES3.
es-shimsIl y a 6 monthstoArray, javascript, ecmascript, polyfill lodash.toarray3.9mMIT4.4.0The lodash method `_.toArray` exported as a module.
lodashIl y a about 3 yearstoarray, lodash-modularized make-array769kMIT1.0.5Creates a real Array from almost anything.
kaelzhangIl y a about 3 yearsto-array, toarray, make-array, makearray