Skip to main content

stripHexcode

Callable

  • stripHexcode(hexcode: string): Hexcode

  • This function will strip zero width joiners (200D) and variation selectors (FE0E, FE0F) from a hexadecimal codepoint.

    import { stripHexcode } from 'emojibase';

    stripHexcode('1F468-200D-2695-FE0F'); // 1F468-2695