Javascript Object empty()

Description

Javascript Object empty()

// Empty (object)
// --------------
Object.prototype.empty = function() {
  return Object.keys(this).length <= 0;
}



PreviousNext

Related