# string.getSymbols

Function · category: Other

Source: https://github.com/playcanvas/engine/blob/970d89f6d3bc6667f4e1f88153abd6e7e82ed52c/src/core/string.js#L186

```ts
getSymbols(string: string): string[]
```

Gets an array of all grapheme clusters (visible symbols) in a string. This is needed because
some symbols (such as emoji or accented characters) are actually made up of multiple
character codes. See [here](https://mathiasbynens.be/notes/javascript-unicode) for more
info.

**Parameters**

- `string` (`string`): The string to break into symbols.

**Returns** `string[]`: The symbols in the string.
