Socket
Socket
Sign inDemoInstall

advanced-map-mutable-multi-key

Package Overview
Dependencies
21
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    advanced-map-mutable-multi-key

Map-like class using mutable arrays as keys


Version published
Weekly downloads
6
increased by500%
Maintainers
1
Install size
5.25 MB
Created
Weekly downloads
 

Readme

Source

advanced-map-mutable-multi-key

Map-like class using mutable arrays as keys

Usage

import MutableMultiKey from 'advanced-map-mutable-multi-key'
const map = new MutableMultiKey(Map)

const key = [0]
map.set(key, 'value')

map.get([0]) // expect: 'value'
map.get([1]) // expect: undefined
map.get(key) // expect: 'value'

key[0] = 1

map.get([0]) // expect: undefined
map.get([1]) // expect: 'value'
map.get(key) // expect: 'value'

License

MIT © Hoàng Văn Khải

Keywords

FAQs

Last updated on 12 Jan 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc