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:
740 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import { complement } from 'ramda';
|
---|
| 2 |
|
---|
| 3 | import _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 | */
|
---|
| 29 | const isNotFinite = complement(_isFinite);
|
---|
| 30 |
|
---|
| 31 | export default isNotFinite;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.