main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
718 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import { complement } from 'ramda';
|
---|
| 2 |
|
---|
| 3 | import isArrayLike from './isArrayLike';
|
---|
| 4 |
|
---|
| 5 | /**
|
---|
| 6 | * Tests whether or not an object is similar to an array.
|
---|
| 7 | *
|
---|
| 8 | * @func isNotArrayLike
|
---|
| 9 | * @memberOf RA
|
---|
| 10 | * @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
|
---|
| 11 | * @category Type
|
---|
| 12 | * @sig * -> Boolean
|
---|
| 13 | * @param {*} val The value to test
|
---|
| 14 | * @return {boolean}
|
---|
| 15 | * @see {@link RA.isArrayLike|isArrayLike}
|
---|
| 16 | * @example
|
---|
| 17 | *
|
---|
| 18 | * RA.isNotArrayLike([]); //=> false
|
---|
| 19 | * RA.isNotArrayLike(true); //=> true
|
---|
| 20 | * RA.isNotArrayLike({}); //=> true
|
---|
| 21 | * RA.isNotArrayLike({length: 10}); //=> true
|
---|
| 22 | * RA.isNotArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> false
|
---|
| 23 | */
|
---|
| 24 | const isNotArrayLike = complement(isArrayLike);
|
---|
| 25 |
|
---|
| 26 | export default isNotArrayLike;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.