Skip to main content

Function: textFromUnifiedID()

textFromUnifiedID(unifiedID): string

Defined in: packages/lexical-emoji-extension/src/unifiedID.ts:12

Convert a unified emoji ID its emoji representation.

Parameters​

unifiedID​

string

The hyphen delimited hex representation of the UTF-16 code points in the emoji

Returns​

string

The emoji as a string

Example​

assert(textFromUnifiedId("1F926-200D-2642-FE0F") === "🤦‍♂️");