Ramda Adjunct 2.6.0

isNotObjLike.js

  1. import { complement } from 'ramda';
  2. import isObjLike from './isObjLike';
  3. /* eslint-disable max-len */
  4. /**
  5. * Checks if value is not object-like. A value is object-like if it's not null and has a typeof result of "object".
  6. *
  7. * @func isNotObjLike
  8. * @aliases isNotObjectLike
  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.isObjLike|isObjLike}, {@link RA.isObj|isObj}, {@link RA.isPlainObj|isPlainObj}
  16. * @example
  17. *
  18. * RA.isNotObjLike({}); //=> false
  19. * RA.isNotObjLike([]); //=> false
  20. * RA.isNotObjLike(() => {}); //=> true
  21. * RA.isNotObjLike(null); //=> true
  22. * RA.isNotObjLike(undefined); //=> true
  23. */
  24. /* eslint-enable max-len */
  25. const isNotObjLike = complement(isObjLike);
  26. export default isNotObjLike;