Question: > 
> **Possible Duplicate:**  
> 
> [How to merge two arrays in Javascript](https://stackoverflow.com/questions/1584370/how-to-merge-two-arrays-in-javascript) 
> 
> 
> 

Let's suppose I have 2 arrays:

```
a = ['a','b','c'];
b = ['d','e','f'];

```

Is there somehow to easy add the `b` into `a` without having to split and perform an `each` for adding the elements?

Something like:

```
a.push(b);

```

And have an final `a` array with the content:

```
a = ['a','b','c','d','e','f'] 

```

Answer: 
Have you tryied the [`concat()` function](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/concat)?

```
var hege = ["Cecilie", "Lone"];
var stale = ["Emil", "Tobias", "Linus"];
var kai = ["Robin"];
var children = hege.concat(stale,kai);

```

Will output:

```
Cecilie,Lone,Emil,Tobias,Linus,Robin

```
Use Array.concat:

```
a = a.concat(b); // a == ['a','b','c','d','e','f']

```