
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
bisect-sorted-set
Advanced tools
An in memory sorted set that uses binary search on numeric indexes to find values next to each other
An in memory sorted set that uses binary search on numeric indexes to find values next to each other.
var Set = require('bisect-sorted-set')
var set = new Set()
set.put(1000, {foo: 'bar'})
set.put(100001, {foo: 'baz'})
set.get(1000) -> {foo: 'bar'}
set.get(1001) -> null
set.gte(1000) -> {foo: 'bar'}
set.gt(1000) -> {foo: 'baz'}
$ npm install bisect-sorted-set
Store value at idx.
Get value at idx, if any.
Get value with index next greater than idx, if any.
Get value with index next greater than or equal to idx, if any.
Get value with index next lower than idx, if any.
Get value with index next lower than or equal to idx, if any.
Delete value at idx, if any.
MIT
FAQs
An in memory sorted set that uses binary search on numeric indexes to find values next to each other
The npm package bisect-sorted-set receives a total of 0 weekly downloads. As such, bisect-sorted-set popularity was classified as not popular.
We found that bisect-sorted-set demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.