Hi,
I am developing a script for IE6 in which i need to join arrays. I am aware of concat, but i was not able to find any sufficient documentation on this method. Can anybody please tell me correct way to do this?
itβs quite easy, you know:
var a=new Array(βaβ,βbβ,βcβ);
var b=new Array(βdβ,βeβ,βfβ);
var c=a.concat(b);
c will be an array: (βaβ,βbβ,βcβ,βdβ,βeβ,βfβ)
Thts fine for two arrays, but what if i need to join 20 arrays into 1 ?
var a=new Array(βaβ,βbβ,βcβ);
var b=new Array(βdβ,βeβ,βfβ);
var d=new Array(βxβ,βyβ,βzβ);
var c=a.concat(b,d);
just add as much as you like
Tht Worked !!!