Determines whether array is empty - Node.js Array

Node.js examples for Array:Array Operation

Description

Determines whether array is empty

Demo Code

Array.prototype.empty = function() {
  return this.length <= 0;
}

Related Tutorials