Socket
Socket
Sign inDemoInstall

advanced-map-altered-equal

Package Overview
Dependencies
6
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    advanced-map-altered-equal

Map-like class with customizable equality operator


Version published
Weekly downloads
1
Maintainers
1
Install size
1.34 MB
Created
Weekly downloads
 

Readme

Source

advanced-map-altered-equal

Map-like class with customizable equality operator

Usage

import AlteredEqual from 'advanced-map-altered-equal'
const map = new AlteredEqual(Map, (a, b) => String(a) === String(b))
map.set(0, 'zero')
map.get('0') // expect: 'zero'
map.get({ toString: () => '0' }) // expect: 'zero'

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