<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@easyops-cn/brick-next-pipes](./brick-next-pipes.md) &gt; [join](./brick-next-pipes.join.md)

## join() function

将一个数组的所有元素拼接成字符串。

 Array

**Signature:**

```typescript
export declare function join(value: unknown[], separator?: string): string;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  value | unknown\[\] | 数组。 |
|  separator | string | 分隔符号（默认为 <code>&quot;,&quot;</code>）。 |

**Returns:**

string

拼接后的字符串。

## Remarks

当输入值不是数组时返回空字符串。

