웹 개발
자바스크립트 array remove()
팩트폭력배
2013. 7. 4. 15:59
Array.prototype.remove = function(idx) { return (idx<0 || idx>this.length) ? this : this.slice(0, idx).concat(this.slice(idx+1, this.length)); };