source: node_modules/ramda-adjunct/src/isNotFinite.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: 740 bytes
Line 
1import { complement } from 'ramda';
2
3import _isFinite from './isFinite';
4
5/**
6 * Checks whether the passed value is complement of finite `Number`.
7 *
8 *
9 * @func isNotFinite
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.isFinite|isFinite}
17 * @example
18 *
19 * RA.isNotFinite(Infinity); //=> true
20 * RA.isNotFinite(NaN); //=> true
21 * RA.isNotFinite(-Infinity); //=> true
22 *
23 * RA.isNotFinite(0); // false
24 * RA.isNotFinite(2e64); // false
25 *
26 * RA.isNotFinite('0'); // => true
27 * RA.isNotFinite(null); // => true
28 */
29const isNotFinite = complement(_isFinite);
30
31export default isNotFinite;
Note: See TracBrowser for help on using the repository browser.