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: 4 months 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-03T11:06:57.000Z (over 10 years ago)
- Last Synced: 2024-04-26T15:03:39.136Z (about 1 year 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



Check if an object is an array or a typed array.
## Usage
[](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.