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