is-even
is-even copied to clipboard
Support BigInt
isEven(0n); // expect true
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt BigInt has been officially adopted in ECMAScript 2020. It is already implemented in major JavaScript engines such as SpiderMonkey, V8, JavaScriptCore, and Rhino.