-
-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathisNotArrayLike.js
More file actions
26 lines (23 loc) · 721 Bytes
/
isNotArrayLike.js
File metadata and controls
26 lines (23 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { complement } from 'ramda';
import isArrayLike from './isArrayLike.js';
/**
* Tests whether or not an object is similar to an array.
*
* @func isNotArrayLike
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isArrayLike|isArrayLike}
* @example
*
* RA.isNotArrayLike([]); //=> false
* RA.isNotArrayLike(true); //=> true
* RA.isNotArrayLike({}); //=> true
* RA.isNotArrayLike({length: 10}); //=> true
* RA.isNotArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> false
*/
const isNotArrayLike = complement(isArrayLike);
export default isNotArrayLike;