Skip to content

unicodeToArray() function

将 Unicode string 转换为数组。

Signature:

typescript
declare function unicodeToArray(string: string): [] | RegExpMatchArray;

Example

ts
unicodeToArray("🙇‍♂️🤩😭"); // ['🙇‍♂️','🤩','😭'];

Open Source Code

Released under the Apache-2.0 License.