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

big-associative

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

big-associative

Big associative containers who can store over 16M elements

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Big Associative

Outline

Native associative containers of the JavaScript, they only can store under 224 elements.

The big-associative provides extended associative containers who can ignore the limitations. With the below components, you can store infinite elements until the memory overflow.

JS NativeExtended
MapBigMap
SetBigSet
WeakMapBigWeakMap
WeakSetBigWeakSet

Installation

NPM Module

Installing the big-associative is very easy. Just use the npm install command.

npm install --save big-associative

Usage

Just import big-associative and use any class what you want:

import { BigMap, BigSet, BigWeakMap, BigWeakSet } from "big-associative";

function main(): void
{
    const map: BigMap<number, number> = new BigMap();
    for (let i: number = 0; i < Number.MAX_INTEGER; ++i)
        map.set(i, i);
}

Keywords

FAQs

Package last updated on 23 Oct 2020

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