News for hackers. Stuff that matters.
Re:4B If Statements by divbzero on Thursday December 28, 2023 @06:26AM (#38792364)
I did learn one new thing from browsing the is-odd source code: Number.isSafeInteger(n) checks that n falls within the [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER] interval.

  ...
  if (!Number.isSafeInteger(n)) {
    throw new Error('value exceeds maximum safe integer');
  }
  ...
Re:4B If Statements by skitter on Friday December 29, 2023 @10:48AM (#38806173)
Shouldn't this simply return true instead of throwing?