According to MDN :
Map.length
The value of the length property is 0.
What is the precedent for this? I understand why Map.size is semantically correct. But of course, Map.length , which almost always returns the βwrongβ answer, is a bad idea, especially if there is an add-in that transfers code from ES5. Is there a way to make an error when it is used?
javascript ecmascript-6
jimm101
source share