Skip to main content
Module

x/rimbu/mod.ts>Range.getNormalizedRange

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
function Range.getNormalizedRange
import { Range } from "https://deno.land/x/rimbu@0.13.1/mod.ts";
const { getNormalizedRange } = Range;

Simplifies a given range Range input for easier processing, by returning optional start and end ranges including whether they are inclusive or exclusive

Parameters

range: Range<T>
  • the Range to use

Returns

{ start?: [T, boolean] | undefined; end?: [T, boolean] | undefined; }