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

reference-map

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reference-map

This is a simple determinstic map that maps POJOs to an integer

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

NPM Package Build Status Coverage Status

js-standard-style

install

npm install referanceMap

SYNOPSIS

This is a simple determinstic map that maps POJOs to an integer.

API

constructor

index.js:5-7

Handle mapping arbitary JS object to ints

add

index.js:15-17

Adds an object to the referance map returning an int to be used as a referance

Parameters

  • obj any

Returns integer

get

index.js:24-30

gets a POJO given a refernce as an int

Parameters

  • ref integer

Returns any

delete

index.js:37-39

deletes an object given a referance as an int

Parameters

  • integer
  • ref

Returns boolean whether or not the object was deleted

clear

index.js:44-46

clears the referance map of a objects

LICENSE

MPL-2.0

Keywords

FAQs

Package last updated on 24 Jul 2017

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