DEV Community

Discussion on: Linear and Binary Search in JavaScript

 
pichardoj profile image
J. Pichardo • Edited

I fully agree, nonetheless that would require using typescript, I had thought about making use of the valueOf function, however I like the way @stepho did it since it is easier to reuse, even more for js newcomers.