main
Last change
on this file since 24819a8 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
729 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * Tests whether or not an object is similar to an array.
|
---|
3 | *
|
---|
4 | * @func isArrayLike
|
---|
5 | * @memberOf RA
|
---|
6 | * @since {@link https://char0n.github.io/ramda-adjunct/1.9.0|v1.9.0}
|
---|
7 | * @licence https://github.com/ramda/ramda/blob/master/LICENSE.txt
|
---|
8 | * @category List
|
---|
9 | * @category Type
|
---|
10 | * @sig * -> Boolean
|
---|
11 | * @param {*} val The value to test
|
---|
12 | * @returns {boolean} `true` if `val` has a numeric length property and extreme indices defined; `false` otherwise.
|
---|
13 | * @see {@link RA.isNotArrayLike|isNotArrayLike}
|
---|
14 |
|
---|
15 | * @example
|
---|
16 | *
|
---|
17 | * RA.isArrayLike([]); //=> true
|
---|
18 | * RA.isArrayLike(true); //=> false
|
---|
19 | * RA.isArrayLike({}); //=> false
|
---|
20 | * RA.isArrayLike({length: 10}); //=> false
|
---|
21 | * RA.isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
|
---|
22 | */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.