import { isEven } from "https://deno.land/x/isx@1.1.1/number/is_even.ts";
Whether the input is even or not.
Examples
Example 1
Example 1
import { isEven } from "https://deno.land/x/isx@$VERSION/number/is_even.ts"
import { assertEquals } from "https://deno.land/std/testing/asserts.ts"
assertEquals(isEven(0), true)
assertEquals(isEven(1), false)