source: node_modules/ramda-adjunct/src/isNotInteger.js@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

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