Displaying 1 to 5 from 5 results

outward-search - Search an array of items outwards from a starting index

  •    Javascript

If you need to find an item in an array that you know should be near another item, you can use outward-search to do so efficiently. The callback is called on the start index then it works its way outwards to either end of the array.