1 | Checks if value is array.
|
2 | [:package:](https://www.npmjs.com/package/@extra-array/is)
|
3 | [:smiley_cat:](https://github.com/orgs/nodef/packages?repo_name=extra-array)
|
4 | [:running:](https://npm.runkit.com/@extra-array/is)
|
5 | [:vhs:](https://asciinema.org/a/332074)
|
6 | [:moon:](https://www.npmjs.com/package/@extra-array/is.min)
|
7 | [:scroll:](https://unpkg.com/@extra-array/is/)
|
8 | [:newspaper:](https://nodef.github.io/extra-array/)
|
9 | [:blue_book:](https://github.com/nodef/extra-array/wiki/)
|
10 |
|
11 | > This is part of package [extra-array].
|
12 |
|
13 | [extra-array]: https://www.npmjs.com/package/extra-array
|
14 |
|
15 | <br>
|
16 |
|
17 | ```javascript
|
18 | array.is(v);
|
19 | // v: value
|
20 | ```
|
21 |
|
22 | ```javascript
|
23 | const array = require("extra-array");
|
24 |
|
25 | array.is([1, 2]);
|
26 | // true
|
27 |
|
28 | array.is([]);
|
29 | // true
|
30 |
|
31 | array.is(new Set([1, 2]));
|
32 | // false
|
33 | ```
|
34 |
|
35 | <br>
|
36 | <br>
|
37 |
|
38 |
|
39 | ## References
|
40 |
|
41 | - [Array.isArray: MDN web docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray)
|
42 | - [Array.isArray: sugarjs](https://sugarjs.com/docs/#/ES5/Array/isArray)
|