Given an array and a string, it mutates the provided array and inserts the string after the closest match. It returns the index at which the string was inserted.
An array of strings to mutate.
The element to insert in provided array.
The index of the insert.
Given an array and a string, it mutates the provided array and inserts the string after the closest match. It returns the index at which the string was inserted.