array-types

1.0.0 • Public • Published

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

/array-types/

    Package Sidebar

    Install

    npm i array-types

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • gakimball