Truncate Array
/** Example array */ var a = [1, 2, 3, 4, 5, 6, 7]; /** You can use the length property as a setter */ a.length = 2; /** Results */ alert(a);
/** Example array */ var a = [1, 2, 3, 4, 5, 6, 7]; /** You can use the length property as a setter */ a.length = 2; /** Results */ alert(a);