JavaScript: get the number of properties in an object WITHOUT LOOPING
Unlike arrays, JavaScript objects do not a have a length property which gives you the number of properties / items in an object. The most common way of getting the number of properties is to loop through the object - not pretty, resource intensive.
This had been a long known problem JavaScript developers have been facing for a long time. All modern and superior browsers support a fix for this a ...