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

x/rimbu/common/index.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@1.0.4/common/index.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]