map
import { map } from "https://raw.githubusercontent.com/JOTSR/Denum/master/mod.ts";Re-map a value from initial bounds to another bounds
function map(
value: number,
initialBounds: [number, number],
destinationBounds: [number, number],
): number;function map(
value: bigint,
initialBounds: [bigint, bigint],
destinationBounds: [bigint, bigint],
): bigint;function map<T extends number | bigint>(
value: T,
initialBounds: [T, T],
destinationBounds: [T, T],
): T;§
map(value: number, initialBounds: [number, number], destinationBounds: [number, number]): number
[src]Re-map a value from initial bounds to another bounds