Socket
Socket
Sign inDemoInstall

collections

Package Overview
Dependencies
Maintainers
0
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

collections

A utility for representing and manipulating collections for nodejs.


Version published
Weekly downloads
28K
decreased by-10.47%
Maintainers
0
Weekly downloads
 
Created
Source

collection.js

Collection is a utility for representing and manipulating collections for nodejs.

Quick Examples

var TreeMap = require('src/collection').TreeMap;

// define compare function
function compareFunc(k1, k2) {
  return k1 - k2;
}

var treemap = new TreeMap(compareFunc);
treemap.put(1101, {value: "This is a test blob."});
console.log(treemap.get(1101));

var submap = treemap.tailMap(1000, false);
console.log(submap.get(1101));

Keywords

FAQs

Package last updated on 17 Mar 2011

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