1. what is the difference between map and object?https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#objects_vs._mapsthe key of the map can be any type, but the key of the object only can be string or symbol.the map has order.2. how to get the target item from a array?use the find api of the Array Array.prototype.find()https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findhow to use:上一篇how to check if a key is in the Object下一篇2024-W17下一篇2024-W17