Tag: key

performance – How to efficiently count the number of keys/properties of an object in JavaScript?

The Question : 1630 people think this question is useful What’s the fastest way to count the number of keys/properties of an object? It it possible to do this without iterating over the object? i.e. without doing (Firefox did provide a magic __count__ property, but this was removed somewhere around version 4.) The Question Comments