= Object.freeze({ const b = Object.freeze({ essage: 'jsconf' }); essage: 'jsconf' }); const ap = ne ap(); map.set(a, 'JP'); console.log(map.get(b)); undefined 比 比 比 一 比 m m / / M w m 4
ne Set() }; const b = { id: 1, set: ne Set() }; ne Set([JSON.stringify(a), JSON.stringify(b)]); 字列にして 較する 法 キーの順序が変わると動かない Setや関数等をpropertyとして持つ場合はその情報が失われる →well-de nedな同値 較を定義しMapやSetでもObjectを値のように扱いたい! w w 比 方 fi 比 15 w 文 そもそものモチベーション