Is there a way to convert a hex code into an emoji without using surrogate pairs? For example, I want to turn the hex code U+1F64C into its corresponding emoji, without complications like using simple hex values like 2728 or more complex ones like 1F601.
I am aware of options like String.fromCharCode
and String.fromCodePoint
, but I need guidance on avoiding surrogate pairs in my dynamic code. Any assistance with this specific scenario would be greatly appreciated.