performance - How to efficiently count the number of keys/properties of an object in JavaScript - Stack Overflow

PHOTO EMBED

Tue Dec 07 2021 14:27:08 GMT+0000 (Coordinated Universal Time)

Saved by @ali_alaraby #javascript

Object.keys(obj).length
content_copyCOPY

https://stackoverflow.com/questions/126100/how-to-efficiently-count-the-number-of-keys-properties-of-an-object-in-javascrip