Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

advance

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

advance

In-memory forward iterator for use with the Strata b-tree MVCC tool collection.

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
increased by36.36%
Maintainers
1
Weekly downloads
 
Created
Source

In-memory forward iterator for use with the Strata b-tree MVCC tool collection.

function comparator (a, b) { return +a - +b }

var test = cadence(function () {
    var iterator
    async(function () {
        iterator = advance.forward(comparator, [ 1, 2, 3 ])
        iterator.next(async())
    }, function (more) {
        assert.ok(more)
        var items = [], item
        while (item = iterator.get()) {
            items.push(item)
        }
        assert.deepEqual(items, [ 1, 2, 3 ], 'next')
        iterator.next(async())
    }, function (more) {
        assert.ok(!more)
        iterator.unlock(async())
    })
})

test(function (error) { if (error) throw error })

Keywords

FAQs

Package last updated on 24 Dec 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc