Seems like it’s reinventing the natively-provided wheel, doesn’t it? Is it really worth extra framework weight? Why do those frameworks feel the need to define it as an additional feature when for...in seems to serve the feature’s purpose just fine?
Seems like it’s reinventing the natively-provided wheel, doesn’t it? Is it really worth extra
Share
for ... inalso catches properties down the prototype chain. You have to use the.hasOwnProperty()method to filter things out.