import { isNonNegativeInteger } from "https://deno.land/x/isx@1.5.0/number/is_non_negative_integer.ts";
Whether the input is non negative integer or not.
Examples
Example 1
Example 1
import { isNonNegativeInteger } from "https://deno.land/x/isx@$VERSION/number/is_non_negative_integer.ts"
import { assertEquals } from "https://deno.land/std/testing/asserts.ts"
assertEquals(isNonNegativeInteger(0), true)
assertEquals(isNonNegativeInteger(1.0), true)
assertEquals(isNonNegativeInteger(-1), false)