ramda-adjunct
Version:
Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.
37 lines (36 loc) • 1.22 kB
JavaScript
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = require("ramda");
var _isPlainObj = _interopRequireDefault(require("./isPlainObj.js"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
/* eslint-disable max-len */
/**
* Check to see if an object is a not plain object (created using `{}`, `new Object()` or `Object.create(null)`).
*
* @func isNotPlainObj
* @aliases isNotPlainObject
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isPlainObj|isPlainObj}, {@link RA.isObjLike|isObjLike}, {@link RA.isObj|isObj}
* @example
*
* class Bar {
* constructor() {
* this.prop = 'value';
* }
* }
*
* RA.isNotPlainObj(new Bar()); //=> true
* RA.isNotPlainObj({ prop: 'value' }); //=> false
* RA.isNotPlainObj(['a', 'b', 'c']); //=> true
* RA.isNotPlainObj(Object.create(null); //=> false
* RA.isNotPlainObj(new Object()); //=> false
*/
/* eslint-enable max-len */
var isNotPlainObj = (0, _ramda.complement)(_isPlainObj["default"]);
var _default = exports["default"] = isNotPlainObj;
;