Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

NumberEx.isNonNegativeNumber

import { NumberEx } from "https://raw.githubusercontent.com/i-xi-dev/string.es/6.0.5/deps.ts"; 

const { isNonNegativeNumber } = NumberEx;

Determines whether the test is a non-negative number.

function isNonNegativeNumber(test: unknown): boolean;
§
isNonNegativeNumber(test: unknown): boolean
[src]

§Parameters

§
test: unknown
[src]
  • The value to be tested

§Return Type

§
boolean
[src]

Whether the test is a non-negative number. (non-negative finite or positive infinity)