Ramda Adjunct 1.14.0

isNotNull.js

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