Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

A Map that internally encodes Arrays to strings so that two Arrays with the same elements will return the same item.

License

NotificationsYou must be signed in to change notification settings

PythonCoderAS/array-string-map

Repository files navigation

node-currentnpmnpmGitHub issuesTests

A Map that internally encodes Arrays to strings so that two Arrays with the same elements will return the same item.

Motivation

I was using a Map to store array values, and I kept on running into a bug where I could not get those values back. I got fed up, and then after some Googling, realized that array lookups will not work when two different arrays with the same elements are used (such as when I use array literal syntax to create them). My solution was to encode the values as string keys.

About

A Map that internally encodes Arrays to strings so that two Arrays with the same elements will return the same item.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp