> For the complete documentation index, see [llms.txt](https://typescript-jp.gitbook.io/deep-dive/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://typescript-jp.gitbook.io/deep-dive/main-1/create-arrays.md).

# Create Arrays

空の配列を作成するのは簡単です：

```typescript
const foo:string[] = [];
```

あるコンテンツで事前に埋められた配列を作成するには、ES6`Array.prototype.fill`を使います：

```typescript
const foo:string[] = new Array(3).fill('');
console.log(foo); // ['','',''];
```
