Skip to content

Commit 9de4806

Browse files
committed
remove isNaN, isInfinite
1 parent 09ba176 commit 9de4806

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

jscomp/others/js_bigint.res

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,6 @@ The special value "Not a Number". See [`NaN`](https://developer.mozilla.org/en-U
66
*/
77
external _NaN: bigint = "NaN"
88

9-
@val
10-
@scope("Number")
11-
/**
12-
Tests if the given value is `_NaN`
13-
14-
Note that both `_NaN = _NaN` and `_NaN == _NaN` will return `false`. `isNaN` is
15-
therefore necessary to test for `_NaN`. Return `true` if the given value is
16-
`_NaN`, `false` otherwise. See [`isNaN`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN) on MDN.
17-
*/
18-
external isNaN: bigint => bool = "isNaN"
19-
20-
/**
21-
Tests if the given value is finite. Return `true` if the given value is a finite
22-
number, `false` otherwise. See [`isFinite`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isFinite) on MDN.
23-
24-
## Examples
25-
26-
```rescript
27-
/* returns [false] */
28-
Js.Bigint.isFinite(Js.Bigint._NaN)
29-
30-
/* returns [true] */
31-
Js.Bigint.isFinite(1234.)
32-
```
33-
*/
34-
external isFinite: bigint => bool = "isFinite"
35-
369
@val
3710
/**
3811
Parses the given `string` into a `bigint` using JavaScript semantics. Return the

0 commit comments

Comments
 (0)