Created
June 8, 2015 09:40
-
-
Save mahadazad/46ff96e4a03a306ebf38 to your computer and use it in GitHub Desktop.
Is 32 Bit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function is32Bit(c) { | |
return c.codePointAt(0) > 0xFFFF; | |
} | |
console.log(is32Bit("𠮷")); // true | |
console.log(is32Bit("a")); // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment