is-array-of
Installation
npm install is-array-of
Usage
Returns a function which check it's input against either a JavaScript type or a function.
var isArrayOf = ;"a" "b" "c" // true1 2 3 // false1 3 5 // true
Why?
Useful for confirming all members of an array are what you expect, before you do something like map over them and hit an error at a harder to debug spot.