Skip to content

unicodeToArray() function

Converts a Unicode string to an array.

Signature:

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

Example

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

Open Source Code

Released under the Apache-2.0 License.