sub-index (npm): Find an array index of the substitute value that should be chosen when a given index is deleted
Keywords: find|index|number|array|substitute|candidate|choice|predecessor