source: node_modules/ramda-adjunct/es/isNotFloat.js

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

Initial commit

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