source: node_modules/ramda-adjunct/es/isNotNaN.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: 954 bytes
Line 
1import { complement } from 'ramda';
2import _isNaN from './isNaN';
3
4/**
5 * Checks whether the passed value is complement of `NaN` and its type is not `Number`.
6 *
7 * @func isNotNaN
8 * @memberOf RA
9 * @since {@link https://char0n.github.io/ramda-adjunct/0.6.0|v0.6.0}
10 * @category Type
11 * @sig * -> Boolean
12 * @param {*} val The value to test
13 * @return {boolean}
14 * @see {@link RA.isNaN|isNaN}
15 * @example
16 *
17 * RA.isNotNaN(NaN); // => false
18 * RA.isNotNaN(Number.NaN); // => false
19 * RA.isNotNaN(0 / 0); // => false
20 *
21 * RA.isNotNaN('NaN'); // => true
22 * RA.isNotNaN(undefined); // => true
23 * RA.isNotNaN({}); // => true
24 * RA.isNotNaN('blabla'); // => true
25 *
26 * RA.isNotNaN(true); // => true
27 * RA.isNotNaN(null); // => true
28 * RA.isNotNaN(37); // => true
29 * RA.isNotNaN('37'); // => true
30 * RA.isNotNaN('37.37'); // => true
31 * RA.isNotNaN(''); // => true
32 * RA.isNotNaN(' '); // => true
33 */
34var isNotNaN = complement(_isNaN);
35export default isNotNaN;
Note: See TracBrowser for help on using the repository browser.