Only with a reference to the same object does the Map structure treat it as the same key?

clipboard.png

recently read
es6 (Ruan Yifeng"s introduction to es6)-ECMAScript 6 introduction to the data structure of the Map chapter here do not know how to ask the boss for advice.

//
{
    ["a"]:555
}
Mar.28,2021

['a'] === ['a'] // false
var a = ['a']
var b = a
a === b // true

object is a reference type, and what is actually stored in the variable is the object's memory address, {} = = {} / / false

Menu