Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iguntur/is-arr
Check if a value is an array
https://github.com/iguntur/is-arr
Last synced: about 12 hours ago
JSON representation
Check if a value is an array
- Host: GitHub
- URL: https://github.com/iguntur/is-arr
- Owner: iguntur
- License: mit
- Created: 2016-10-14T04:27:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-14T22:46:46.000Z (almost 8 years ago)
- Last Synced: 2024-10-03T18:37:40.588Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# is-arr [![Build Status](https://travis-ci.org/iguntur/is-arr.svg?branch=master)](https://travis-ci.org/iguntur/is-arr)
> Check if a value is an array [`Polyfill`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#Polyfill)
## Install
``` bash
$ npm install --save is-arr
```## Usage
**async**
```js
const isArr = require('is-arr');isArr(['albums']).then(val => {
console.log(val);
});
//=> true
```**sync**
```js
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](http://guntur.starmediateknik.com)