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:
770 bytes
|
Line | |
---|
1 | import { complement } from 'ramda';
|
---|
2 |
|
---|
3 | import isObj from './isObj';
|
---|
4 |
|
---|
5 | /* eslint-disable max-len */
|
---|
6 | /**
|
---|
7 | * Checks if input value is complement of language type of `Object`.
|
---|
8 | *
|
---|
9 | * @func isNotObj
|
---|
10 | * @aliases isNotObject
|
---|
11 | * @memberOf RA
|
---|
12 | * @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
|
---|
13 | * @category Type
|
---|
14 | * @sig * -> Boolean
|
---|
15 | * @param {*} val The value to test
|
---|
16 | * @return {boolean}
|
---|
17 | * @see {@link RA.isObj|isObj}, {@link RA.isObjLike|isObjLike}, {@link RA.isPlainObj|isPlainObj}
|
---|
18 | * @example
|
---|
19 | *
|
---|
20 | * RA.isNotObj({}); //=> false
|
---|
21 | * RA.isNotObj([]); //=> false
|
---|
22 | * RA.isNotObj(() => {}); //=> false
|
---|
23 | * RA.isNotObj(null); //=> true
|
---|
24 | * RA.isNotObj(undefined); //=> true
|
---|
25 | */
|
---|
26 | /* eslint-enable max-len */
|
---|
27 | const isNotObj = complement(isObj);
|
---|
28 |
|
---|
29 | export default isNotObj;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.