is-arr
v1.0.5
Published
Check if a value is an array `Polyfill`
Downloads
3
Maintainers
Readme
is-arr
Check if a value is an array
Polyfill
Install
$ npm install --save is-arr
Usage
async
const isArr = require('is-arr');
isArr(['albums']).then(val => {
console.log(val);
});
//=> true
sync
const isArr = require('is-arr');
isArr.sync({"albums": "untitled"});
//=> false
API
isArr(input)
Returns a promise value of an input
isArr.sync(input)
Returns a boolean value of an input
input
Type: any
License
MIT © Guntur Poetra