Tdd, Typescript, Testing Framework, Software Development, Software Testing.
2-element subset of the array. This happened when you either started with a 2-element array or the halving of the search elements ended up in a 2-element array. The change was: if (middleOfSubsetIndex === 1) { // Deal with reaching the end of the array to if (middleOfSubsetIndex === 1 ||