Delete from array - Node.js Array

Node.js examples for Array:Remove Element

Description

Delete from array

Demo Code


Array.prototype.del = function(n) {
  if (n < 0) {
    return this;//from  ww w  .  java 2  s.com
  }
  
  this.splice(n, 1);
};

var ValSeparator = "&ensp;";

Related Tutorials