nano-binary-search

uhop
esm
nano-binary-search JS library on GitHub nano-binary-search JS library on npm Download nano-binary-search JS library

Tiny, zero-dependency binary search and sorted-array operations (indexOf, includes, insert, remove) 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

Version 1.1.0 License BSD-3-Clause
nano-binary-search has no homepage
nano-binary-search JS library on GitHub
nano-binary-search JS library on npm
Download nano-binary-search JS library
Keywords
binary searchbisectbisect-leftbisect-rightlower boundupper boundsorted arrayinsertion pointequal rangeinsortsplicecomparatortypescriptzero dependencies