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