<!-- 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; [split](./brick-next-pipes.split.md)

## split() function

将一个字符串分割为字符串列表。

 String

**Signature:**

```typescript
export declare function split(value: string, separator: string): string[];
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  value | string | 字符串。 |
|  separator | string | 分隔符。 |

**Returns:**

string\[\]

返回字符串子串数组，如果输入不是字符串则返回空数组。

## Remarks

详见 [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/String/split](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)<!-- -->。

