source: node_modules/ramda-adjunct/es/isNotFinite.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: 735 bytes
RevLine 
[d24f17c]1import { complement } from 'ramda';
2import _isFinite from './isFinite';
3
4/**
5 * Checks whether the passed value is complement of finite `Number`.
6 *
7 *
8 * @func isNotFinite
9 * @memberOf RA
10 * @since {@link https://char0n.github.io/ramda-adjunct/0.7.0|v0.7.0}
11 * @category Type
12 * @sig * -> Boolean
13 * @param {*} val The value to test
14 * @return {boolean}
15 * @see {@link RA.isFinite|isFinite}
16 * @example
17 *
18 * RA.isNotFinite(Infinity); //=> true
19 * RA.isNotFinite(NaN); //=> true
20 * RA.isNotFinite(-Infinity); //=> true
21 *
22 * RA.isNotFinite(0); // false
23 * RA.isNotFinite(2e64); // false
24 *
25 * RA.isNotFinite('0'); // => true
26 * RA.isNotFinite(null); // => true
27 */
28var isNotFinite = complement(_isFinite);
29export default isNotFinite;
Note: See TracBrowser for help on using the repository browser.