How to use the sorted-array-functions.eq function in sorted-array-functions

To help you get started, we’ve selected a few sorted-array-functions examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github juliangruber / bisect-sorted-set / index.js View on Github external
Set.prototype.get = function (target) {
  var entry = new Entry(target, null)
  var idx = sorted.eq(this._list, entry, cmp)
  if (idx === -1) return
  return this._list[idx].value
}

sorted-array-functions

Maintain and search through a sorted array using some low level functions

MIT
Latest version published 4 years ago

Package Health Score

65 / 100
Full package analysis

Similar packages