source: node_modules/ramda-adjunct/src/isNotObjLike.js@ e48199a

main
Last change on this file since e48199a was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 864 bytes
Line 
1import { complement } from 'ramda';
2
3import isObjLike from './isObjLike';
4
5/* eslint-disable max-len */
6/**
7 * Checks if value is not object-like. A value is object-like if it's not null and has a typeof result of "object".
8 *
9 * @func isNotObjLike
10 * @aliases isNotObjectLike
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.isObjLike|isObjLike}, {@link RA.isObj|isObj}, {@link RA.isPlainObj|isPlainObj}
18 * @example
19 *
20 * RA.isNotObjLike({}); //=> false
21 * RA.isNotObjLike([]); //=> false
22 * RA.isNotObjLike(() => {}); //=> true
23 * RA.isNotObjLike(null); //=> true
24 * RA.isNotObjLike(undefined); //=> true
25 */
26/* eslint-enable max-len */
27const isNotObjLike = complement(isObjLike);
28
29export default isNotObjLike;
Note: See TracBrowser for help on using the repository browser.