Tiny, zero-dependency binary search for JavaScript and TypeScript. Every result is a valid Array.splice() index — no bounds checks, no off-by-one. Equivalent to std::lower_bound / bisect_left.
typescriptsplicebisectbinary-searchcomparatorsorted-arraylower-boundupper-boundzero-dependenciesbisect-leftbisect-rightinsertion-point
-
Updated
Jul 23, 2026 - JavaScript