Get a beautiful string representation of types inside of an Array.
To be completely fair, none. I needed a tiny, zero dependency package for a project that would do this, so I decided to create one.
npm install --save get-array-types
const ArrayTypes =console//=> Array<number|string>console//=> ['number', 'string']console//=> trueconsole//=> false
get-array-types also provides a useful utility function,
Use it as follows:
const isArray = isArrayconsole//=> falseconsole//=> true