Ramda Adjunct 1.14.0

isNotUndefined.js

  1. import { complement } from 'ramda';
  2. import isUndefined from './isUndefined';
  3. /**
  4. * Checks if input value is complement `undefined`.
  5. *
  6. * @func isNotUndefined
  7. * @memberOf RA
  8. * @since {@link https://char0n.github.io/ramda-adjunct/0.0.1|v0.0.1}
  9. * @category Type
  10. * @sig * -> Boolean
  11. * @param {*} val The value to test
  12. * @return {Boolean}
  13. * @see {@link RA.isUndefined|isUndefined}
  14. * @example
  15. *
  16. * RA.isNotUndefined(1); //=> true
  17. * RA.isNotUndefined(undefined); //=> false
  18. * RA.isNotUndefined(null); //=> true
  19. */
  20. const isNotUndefined = complement(isUndefined);
  21. export default isNotUndefined;