|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
488 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | /**
|
|---|
| 2 | * Checks if `value` is classified as an `Array` object.
|
|---|
| 3 | *
|
|---|
| 4 | * @static
|
|---|
| 5 | * @memberOf _
|
|---|
| 6 | * @since 0.1.0
|
|---|
| 7 | * @category Lang
|
|---|
| 8 | * @param {*} value The value to check.
|
|---|
| 9 | * @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|---|
| 10 | * @example
|
|---|
| 11 | *
|
|---|
| 12 | * _.isArray([1, 2, 3]);
|
|---|
| 13 | * // => true
|
|---|
| 14 | *
|
|---|
| 15 | * _.isArray(document.body.children);
|
|---|
| 16 | * // => false
|
|---|
| 17 | *
|
|---|
| 18 | * _.isArray('abc');
|
|---|
| 19 | * // => false
|
|---|
| 20 | *
|
|---|
| 21 | * _.isArray(_.noop);
|
|---|
| 22 | * // => false
|
|---|
| 23 | */
|
|---|
| 24 | var isArray = Array.isArray;
|
|---|
| 25 |
|
|---|
| 26 | module.exports = isArray;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.