Ramda Adjunct 1.14.0

isNotInteger.js

  1. import { complement } from 'ramda';
  2. import isInteger from './isInteger';
  3. /**
  4. * Checks whether the passed value is complement of an `integer`.
  5. *
  6. *
  7. * @func isNotInteger
  8. * @memberOf RA
  9. * @since {@link https://char0n.github.io/ramda-adjunct/0.7.0|v0.7.0}
  10. * @category Type
  11. * @sig * -> Boolean
  12. * @param {*} val The value to test
  13. * @return {Boolean}
  14. * @see {@link RA.isInteger|isInteger}
  15. * @example
  16. *
  17. * RA.isNotInteger(0); //=> false
  18. * RA.isNotInteger(1); //=> false
  19. * RA.isNotInteger(-100000); //=> false
  20. *
  21. * RA.isNotInteger(0.1); //=> true
  22. * RA.isNotInteger(Math.PI); //=> true
  23. *
  24. * RA.isNotInteger(NaN); //=> true
  25. * RA.isNotInteger(Infinity); //=> true
  26. * RA.isNotInteger(-Infinity); //=> true
  27. * RA.isNotInteger('10'); //=> true
  28. * RA.isNotInteger(true); //=> true
  29. * RA.isNotInteger(false); //=> true
  30. * RA.isNotInteger([1]); //=> true
  31. */
  32. const isNotInteger = complement(isInteger);
  33. export default isNotInteger;