Get the code points of each character in the string
npm install code-points


Get the UTF-16-encoded code points of each character in the string
``javascript`
codePoints('Hello, 世界\n'); //=> [72, 101, 108, 108, 111, 44, 32, 19990, 30028]
``
npm install code-points
str: string Object
option: Array
Return:
It returns the code points of each character in the string as an array.
`javascript`
codePoints('\udada'); //=> [56026]
codePoints('\udfdf\udada\udada'); //=> [57311, 56026, 56026]
codePoints('\udada\udfdf\udada'); //=> [814047, 56026]
#### option.unique
Type: boolean false
Default:
Removes duplicates from result.
`javascript``
codePoints('banana'); //=> [98, 97, 110, 97, 110, 97]
codePoints('banana', {unique: true}); //=> [98,97,110]
Copyright (c) 2014 - 2019 Shinnosuke Watanabe
Licensed under the MIT License.