CodeBrowser / npm / binary-search
binary-search@1.3.6
// tiny binary search function with comparators
$ npm install binary-search
downloads/wk
1,435,758
license
CC0-1.0
version
1.3.6
published
Aug 6, 2019
What is binary-search?
This npm package provides a lightweight binary search implementation that accepts custom comparator functions, allowing you to efficiently search through sorted arrays or data structures. Developers would use it when they need to quickly locate elements in large sorted datasets without writing their own search algorithm, or when they need flexible comparison logic for non-standard data types.
Maintainers
darkskybot, ironwallaby