2

I would highly appreciate if someone could enlighten me why javascript committee has chosen Object.entries, Object.keys, Object.values, over Object.prototype.entries. Object.prototype.keys, Object.prototype.values.

I am asking this question because it's for me unclear what was the motivation for choosing one implementation over another. For instance why an Array got those functions bind to a prototype whereas Object does not. I've tried to search through committee specs, but it did not found an answer.

FieryCod
  • 1,674
  • 1
  • 19
  • 27

0 Answers0