For...in
For...in loop does not guarantee to keep the original order of the array, Use traditional for loop instead.
Delete
array.splice(index,howmany,item1,.....,itemX)
index: the start index
howmany: number of elements to be deleted
item1 ~ X: new items to be added
isArray
function isArray(obj) {
return (obj.constructor.toString().indexOf(”Array”) != -1);
}
Multidimensional Array
var myArray = new Array(10);
for (var i = 0; i < 3; i++) {
myArray[i] = new Array(10);
for (var j = 0; j < myArray[i].length; j++) {
myArray[i][j] = '';
}
}