source: node_modules/ramda-adjunct/es/isObj.js

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