Communities for your favorite technologies. Explore all Collectives
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
whatWhat is the fastest way to check if aan object is empty or not?
isIs there a faster and better way thenthan this:
function count_obj(obj){ var i = 0; for(var key in obj){ ++i; } return i; }
what is the fastest way to check if a object is empty or not?
is there a faster and better way then this:
What is the fastest way to check if an object is empty or not?
Is there a faster and better way than this: