Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/number/index.ts

A JavaScript extension package for building strong and modern applications.
Latest
import * as ayonliJsext from "https://deno.land/x/ayonli_jsext@v0.9.72/number/index.ts";

Functions for dealing with numbers.

Functions

Return true if a number is between the given range (inclusive).

Returns true if the given value is a float number, false otherwise.

Returns true if the given value is a numeric value, false otherwise. A numeric value is a number, a bigint, or a string that can be converted to a number or bigint.

Returns a random integer ranged from min to max (inclusive).

Generates a sequence of numbers from min to max (inclusive).

f
sequence
deprecated

Creates a generator that produces sequential numbers from min to max (inclusive).

Creates a generator that produces sequential numbers from 1 to Number.MAX_SAFE_INTEGER, useful for generating unique IDs.