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

x/dallmo_util_math/etc/deps.deno.ts

deno module, a collection of math util under dallmo-util
Latest
import * as dallmoUtilMath from "https://deno.land/x/dallmo_util_math@v1.2.0/etc/deps.deno.ts";

Functions

Make an assertion, error will be thrown if expr does not have truthy value.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

accepts a number array, add them all up and return the sum

generate an array of integers with a range defined by start and end

insert an item into an array with specific position

get a random index of an array

insert an item into an array with random position

draw an item from an array randomly

remove an item from an array

test connecting to this child module from parent

update a specific item in an array