Function used to determine where to insert. Follows the same logic as the Array.prototype.sort() compareFn parameter.
compareFn
An item currently in the array.
The item to be inserted.
< 0
item
[toInsert, item]
> 0
[item, toInsert]
= 0
Generated using TypeDoc
Function used to determine where to insert. Follows the same logic as the Array.prototype.sort()
compareFn
parameter.