> For the complete documentation index, see [llms.txt](https://shhn0509.gitbook.io/javascript/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shhn0509.gitbook.io/javascript/js-upgrade/method/array.md).

# Array 메서드

## [concat()](https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/concat)&#x20;

&#x20;인자로 주어진 배열이나 값들을 기존 배열에 합쳐서 새 배열을 반환한다.&#x20;

* 기존배열을 변경하지 않는다. &#x20;
* &#x20;추가된 새로운 배열을 반환한다.&#x20;

```javascript
// 정수 배열
var integer = [0, -10, 10];

// 소수 배열
var decimal = [0.8, 0.43, 0.7823];

// 순차 결합
var numbers = integer.slice().concat(decimal); 
// [0, -10, 10, 0.8, 0.43, 0.7823]
```

{% hint style="info" %}
&#x20;ES6에 전개 연산자의 역할을 한다.&#x20;
{% endhint %}
