Created
November 5, 2018 11:17
-
-
Save gnimmelf/9db1626c756d667b8593435e0a72bd7c to your computer and use it in GitHub Desktop.
entityCodePoint to string
This file contains hidden or 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
import characterEntities from 'character-entities-html4'; | |
export const entityCodePoints = new Proxy(characterEntities, { | |
// http://xahlee.info/js/js_unicode_code_point.html | |
get: function(target, prop) { | |
console.log(target, prop) | |
return String.fromCodePoint(target[prop].codePointAt(0)); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment