# JOIN\_ARRAYS

MessageFormat パターンを使用して、任意の数の配列をインデックスで結合します。

## 構文

```
JOIN_ARRAYS(formatString, inputs1[, inputs2, ..., inputsN])
```

## 引数

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| formatString | string | {n} が n 番目の入力を出力するフォーマット文字列。たとえば、入力 'a' と 'b' に対してパターン '{0}.{0}.{1}' を使用すると、文字列 'a.a.b' になります。 | null |
| inputs# | any |  |  |

## 戻り値

`string` の値を返します。

***

## 例

| formatString | inputs1 | inputs2 | inputs3 | 出力 |
| --- | --- | --- | --- | --- |
| '{0} {1} is {2} years old' | array['John', 'Jane'] | array['Smith', 'Johnson'] | array[35, 32] | [`John Smith is 35 years old`, `Jane Johnson is 32 years old`] |
| '{0}:{1}' | array['red', 'green', 'blue', 'luminosity'] | array[255, 255, 0] |  | [`red:255`, `green:255`, `blue:0`, `luminosity:`] |