An open API service indexing awesome lists of open source software.

https://github.com/xotic750/is-array-x

Determines whether the passed value is an Array.
https://github.com/xotic750/is-array-x

array browser isarray javascript nodejs test

Last synced: 9 months ago
JSON representation

Determines whether the passed value is an Array.

Awesome Lists containing this project

README

          


Travis status


Dependency status


devDependency status


npm version


jsDelivr hits


bettercodehub score


Coverage Status

## is-array-x

Determines whether the passed value is an Array.

### `module.exports` ⇒ boolean

The isArray() function determines whether the passed value is an Array.

**Kind**: Exported member
**Returns**: boolean - `true` if the object is an Array; otherwise, `false`.

| Param | Type | Description |
| ----- | --------------- | -------------------------- |
| obj | \* | The object to be checked.. |

**Example**

```js
import isArray from 'is-array-x';

console.log(isArray([])); // true
console.log(isArray({})); // false
```