Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
oatkiller edited this page Sep 13, 2010 · 4 revisions

remove the last element from an array. return the array

(function () {

var my_ra = [1,2,3];
my_ra.length; // returns 3
my_ra[o.chop](); // returns my_ra (which is now: [1,2])
my_ra.length; // returns 2

})();
Clone this wiki locally