Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

深浅拷贝 | ZJL | BLOG #23

Open
zhangjialegh opened this issue Oct 27, 2020 · 0 comments
Open

深浅拷贝 | ZJL | BLOG #23

zhangjialegh opened this issue Oct 27, 2020 · 0 comments

Comments

@zhangjialegh
Copy link
Owner

https://blog.jialekoi.cn/2020/02/27/%E6%B7%B1%E6%B5%85%E6%8B%B7%E8%B4%9D/#more

Map数据结构 Object对象的key只是字符串 字符串-值对应 Map数据结构的key可以是任意类型 值-值对应 Map类似于对象,也是key,value的键值对的集合 Map是一种跟完善的hash结构实现,如果你需要键值对的数据结构,Map比Object更适合 Map.prototype.set(key, value)key可以是任意类型 Map.prototype.get(ke

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant