Why does the Map class not have many built-in methods like in arrays?
Considering Map is an ordered structure, could we not have methods like Map.prototype.find(), Map.prototype.sort(), Map.prototype.filter(), etc? Mostly the methods that are present in an array.
A Map is not an ordered structure! Sure, it does have a well-defined iteration order to guarantee consistency between implementations and make iteration predictable and reproducible, but it is fundamentally an unordered collection. You cannot access it by index, you cannot get the index of an element, you cannot get the next element after or before another.