Skip to main content
Module

x/rimbu/mod.ts>IndexRange.getIndexRangeIndices

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

Returns, given the range IndexRange, a normalized tuple containing the start index, and optionally an end index.

Parameters

range: IndexRange
  • the IndexRange to use

Returns

[number, number | undefined]