In ES5, not many object utilities are defined for the constructor, and not a prototype (for example, definePropertyand keys). What are the reasons for choosing this design? It myObject.keys()seems to me a much better API thanObject.keys(myObject)
source
share