Is object empty - Node.js Object

Node.js examples for Object:Object Operation

Description

Is object empty

Demo Code

function isEmpty(obj) {
  for (var i in obj) {
    return false;
  }/*www .  j ava 2s .co m*/
  return true;
}

Related Tutorials