var arr = [1,2,3]; function extend(others) { arr = arr.concat(others); }