isFinite
isFinite(x)
Try it yourself:
| @1 |
isFinite(Infinity)
|
|
| @2 |
isFinite(bigint(3))
|
|
| @3 |
isFinite([3, -Infinity, -3])
|