binaryInsert
binaryInsert(
items
,value
,getValue
):number
binaryInsert finds the index of where a value should be inserted into a sorted array.
Parameters
• items: any
[]
The sorted array
• value: any
The value to insert
• getValue: Function
= undefined
The function to get the value from the item
Returns
number
The index of where the value should be inserted
Source
Generated using typedoc-plugin-markdown and TypeDoc