Skip to main content
Module

x/rimbu/sorted/common/base.ts>innerGetSubIndex

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
function innerGetSubIndex
import { innerGetSubIndex } from "https://deno.land/x/rimbu@0.14.0/sorted/common/base.ts";

Returns the index of the element in the sources element array, or a tuple with the child index and the index within the child

Parameters

source: InnerMutateSource<any, any>

the collection to operate on

index: number

the index to find

Returns

number | [number, number]