Click here to hide categories Click here to show left categories
User: Home welcome : Guest Log In / Register here
With below function we may get the number of elements in a javascript object
function countProperties(obj) { var count = 0; for(var prop in obj) { if(obj.hasOwnProperty(prop)) ++count; } return count;}