[`isFinite`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/isFinite) returns `false` for `NaN`, `Infinity`, and `-Infinity`. True for everything else.