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

x/rimbu/common/index.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@1.0.3/common/index.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; }