Simple function binaryInsert(array, value, comparator) that provides binary insert functionality for a sorted array in javascript. This is mostly intended for larger arrays, and the performance gain ...
When working with redux you need to use immutable update patterns. So when you need to insert a specific item or items into an array at a specific index... As you can see it's just a simple function ...