array-types
v1.0.0
Published
Get the types of values in an array
Downloads
6
Readme
array-types
Get the types of values in an array
Installation
npm install array-types
Usage
var types = require('array-types');
types(['one', 'two', 'three']); // => 'string'
types([1, 2, 3]); // => 'number'
types(['one', 2, null]); // => ['string', 'number', 'null']
License
MIT © Geoff Kimball