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:
596 bytes
|
Line | |
---|
1 | import { complement } from 'ramda';
|
---|
2 |
|
---|
3 | import isSet from './isSet';
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * Checks if value is complement of `Set` object.
|
---|
7 | *
|
---|
8 | * @func isNotSet
|
---|
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.isSet|isSet}
|
---|
16 | * @example
|
---|
17 | *
|
---|
18 | * RA.isNotSet(new Map()); //=> true
|
---|
19 | * RA.isNotSet(new Set()); //=> false
|
---|
20 | * RA.isNotSet(new Set([1,2]); //=> false
|
---|
21 | * RA.isNotSet(new Object()); //=> true
|
---|
22 | */
|
---|
23 |
|
---|
24 | const isNotSet = complement(isSet);
|
---|
25 |
|
---|
26 | export default isNotSet;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.