News for hackers. Stuff that matters.
Re:In spite of an increase in Internet speed, webpage speeds... by f00zz on Tuesday August 04, 2020 @01:24PM (#24052283)
I notice there's an isEven as well. I wonder if they're mutually recursive.
Re:In spite of an increase in Internet speed, webpage speeds... by mr__y on Tuesday August 04, 2020 @01:27PM (#24052320)
there is also is-odd-even which uses both as dependencies, so it appears they're not

https://www.npmjs.com/package/is-odd-or-even

Re:In spite of an increase in Internet speed, webpage speeds... by f00zz on Tuesday August 04, 2020 @01:34PM (#24052420)
The commit history is surprisingly long. The actual test evolved from

  return !!(~~i >> 0 & 1)
to

  return !!(~~i & 1);
to

  const n = Math.abs(value);
  return (n % 2) === 1;