12:39
<Rob Palmer>
Is there a way to query if an object has no properties without instantiating an array?
16:10
<Ashley Claymore>
I've heard that in some engines Object.keys avoids an array allocation if the object hasn't de-opted and still has a hidden-class
16:10
<Ashley Claymore>
https://es.discourse.group/t/object-isempty/166
16:23
<ljharb>
you could use for-in and skip non-own properties. but I’d be surprised if the array caused issues in practice