source: node_modules/ramda-adjunct/lib/isNotPlainObj.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: 1.2 KB
Line 
1"use strict";
2
3exports.__esModule = true;
4exports["default"] = void 0;
5var _ramda = require("ramda");
6var _isPlainObj = _interopRequireDefault(require("./isPlainObj"));
7function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8/* eslint-disable max-len */
9/**
10 * Check to see if an object is a not plain object (created using `{}`, `new Object()` or `Object.create(null)`).
11 *
12 * @func isNotPlainObj
13 * @aliases isNotPlainObject
14 * @memberOf RA
15 * @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
16 * @category Type
17 * @sig * -> Boolean
18 * @param {*} val The value to test
19 * @return {boolean}
20 * @see {@link RA.isPlainObj|isPlainObj}, {@link RA.isObjLike|isObjLike}, {@link RA.isObj|isObj}
21 * @example
22 *
23 * class Bar {
24 * constructor() {
25 * this.prop = 'value';
26 * }
27 * }
28 *
29 * RA.isNotPlainObj(new Bar()); //=> true
30 * RA.isNotPlainObj({ prop: 'value' }); //=> false
31 * RA.isNotPlainObj(['a', 'b', 'c']); //=> true
32 * RA.isNotPlainObj(Object.create(null); //=> false
33 * RA.isNotPlainObj(new Object()); //=> false
34 */
35/* eslint-enable max-len */
36var isNotPlainObj = (0, _ramda.complement)(_isPlainObj["default"]);
37var _default = isNotPlainObj;
38exports["default"] = _default;
Note: See TracBrowser for help on using the repository browser.