# string.getCodePoints

Function · category: Other

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

```ts
getCodePoints(string: string): number[]
```

Gets an array of all code points in a string.

**Parameters**

- `string` (`string`): The string to get code points from.

**Returns** `number[]`: The code points in the string.
