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:
628 bytes
|
Line | |
---|
1 | import { complement } from 'ramda';
|
---|
2 |
|
---|
3 | import isMap from './isMap';
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * Checks if value is complement of `Map` object.
|
---|
7 | *
|
---|
8 | * @func isNotMap
|
---|
9 | * @memberOf RA
|
---|
10 | * @category Type
|
---|
11 | * @since {@link https://char0n.github.io/ramda-adjunct/2.27.0|v2.27.0}
|
---|
12 | * @sig * -> Boolean
|
---|
13 | * @param {*} val The value to test
|
---|
14 | * @return {boolean}
|
---|
15 | * @see {@link RA.isMap|isMap}
|
---|
16 | * @example
|
---|
17 | *
|
---|
18 | * RA.isNotMap(new Map()); //=> false
|
---|
19 | * RA.isNotMap(new Map([[1, 2], [2, 1]])); //=> false
|
---|
20 | * RA.isNotMap(new Set()); //=> true
|
---|
21 | * RA.isNotMap({}); //=> true
|
---|
22 | * RA.isNotMap(12); //=> true
|
---|
23 | */
|
---|
24 |
|
---|
25 | const isNotMap = complement(isMap);
|
---|
26 |
|
---|
27 | export default isNotMap;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.