Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hughsk/an-array
Check if an object is an array or a typed array
https://github.com/hughsk/an-array
Last synced: 12 days ago
JSON representation
Check if an object is an array or a typed array
- Host: GitHub
- URL: https://github.com/hughsk/an-array
- Owner: hughsk
- License: other
- Created: 2014-11-03T11:06:51.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-03T11:06:57.000Z (about 10 years ago)
- Last Synced: 2024-04-26T15:03:39.136Z (7 months ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# an-array
![](http://img.shields.io/badge/stability-stable-green.svg?style=flat)
![](http://img.shields.io/npm/v/an-array.svg?style=flat)
![](http://img.shields.io/npm/dm/an-array.svg?style=flat)
![](http://img.shields.io/npm/l/an-array.svg?style=flat)Check if an object is an array or a typed array.
## Usage
[![NPM](https://nodei.co/npm/an-array.png)](https://nodei.co/npm/an-array/)
### `is = anArray(array)`
Returns `true` if the object is one of the following:
* `Float32Array`
* `Float64Array`
* `Uint8ClampedArray`
* `Uint8Array`
* `Uint16Array`
* `Uint32Array`
* `Int8Array`
* `Int16Array`
* `Int32Array`
* `Array`Otherwise, will return `false`.
## License
MIT. See [LICENSE.md](http://github.com/hughsk/an-array/blob/master/LICENSE.md) for details.