is-4byte-char
Check if a given value is a character that costs 4 bytes in UTF-8
; ; //=> false; //=> true
Installation
npm
npm install is-4byte-char
Bower
bower install is-4byte-char
is4byteChar(val)
val: any types
Return: Boolean
It returns true
if the argument is a 4-byte character in UTF-8, otherwise false
.
; //=> false; //=> false; //=> true // Non-string value; //=> false
License
Copyright (c) 2016 Shinnosuke Watanabe
Licensed under the MIT License.