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