Ramda Adjunct 2.10.0

isNotObj.js

  1. import { complement } from 'ramda';
  2. import isObj from './isObj';
  3. /* eslint-disable max-len */
  4. /**
  5. * Checks if input value is complement of language type of `Object`.
  6. *
  7. * @func isNotObj
  8. * @aliases isNotObject
  9. * @memberOf RA
  10. * @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
  11. * @category Type
  12. * @sig * -> Boolean
  13. * @param {*} val The value to test
  14. * @return {boolean}
  15. * @see {@link RA.isObj|isObj}, {@link RA.isObjLike|isObjLike}, {@link RA.isPlainObj|isPlainObj}
  16. * @example
  17. *
  18. * RA.isNotObj({}); //=> false
  19. * RA.isNotObj([]); //=> false
  20. * RA.isNotObj(() => {}); //=> false
  21. * RA.isNotObj(null); //=> true
  22. * RA.isNotObj(undefined); //=> true
  23. */
  24. /* eslint-enable max-len */
  25. const isNotObj = complement(isObj);
  26. export default isNotObj;