Get all 4-byte characters form a string
npm install get-4byte-chars





Get all 4-byte characters form a string
``javascript`
get4byteChars('I 💓 🍣.'); //=> ['💓', '🍣']
``
npm install get-4byte-chars
``
bower install get-4byte-chars
str: String Object
option: Boolean
Return:
It detects characters that costs 4 bytes in UTF-8 from a given string, and returns them as an array.
#### option.unique
Type: Boolean true
Default:
Omit all duplicated characters from result.
`javascript
get4byteChars('🌊🌊 \😺/ 🌊🌊');
//=> ['🌊']
get4byteChars('🌊🌊 \😺/ 🌊🌊', {unique: false});
//=> ['🌊', '🌊', '🌊', '🌊']
``
Copyright (c) 2016 Shinnosuke Watanabe
Licensed under the MIT License.