31

年底了“谈个对象”吧

 4 years ago
source link: https://juejin.im/post/5e21772bf265da3df8610096
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
年底了,都回家过年了,是时候好好谈谈对象了。今天要谈的对象是Map和WeakMap。先对这两个对象进行一个简单的介绍总结: Map 的 key 可以是任何类型的值,Object 的键值只能是 string 和 symbols。 Map 实例按照插入的顺序存储

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK