source: node_modules/ramda-adjunct/es/isNotObjLike.js@ d24f17c

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

Initial commit

  • Property mode set to 100644
File size: 859 bytes
Line 
1import { complement } from 'ramda';
2import isObjLike from './isObjLike';
3
4/* eslint-disable max-len */
5/**
6 * Checks if value is not object-like. A value is object-like if it's not null and has a typeof result of "object".
7 *
8 * @func isNotObjLike
9 * @aliases isNotObjectLike
10 * @memberOf RA
11 * @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
12 * @category Type
13 * @sig * -> Boolean
14 * @param {*} val The value to test
15 * @return {boolean}
16 * @see {@link RA.isObjLike|isObjLike}, {@link RA.isObj|isObj}, {@link RA.isPlainObj|isPlainObj}
17 * @example
18 *
19 * RA.isNotObjLike({}); //=> false
20 * RA.isNotObjLike([]); //=> false
21 * RA.isNotObjLike(() => {}); //=> true
22 * RA.isNotObjLike(null); //=> true
23 * RA.isNotObjLike(undefined); //=> true
24 */
25/* eslint-enable max-len */
26var isNotObjLike = complement(isObjLike);
27export default isNotObjLike;
Note: See TracBrowser for help on using the repository browser.