async function format (expanded) {
  const state = {}

  for (const key of Object.keys(expanded)) {
    state[key] = {}
    for (const emoji of expanded[key]) {
      for (const name of emoji.names) {
        state[key][name] = emoji.surrogates
      }
      if (emoji.diversityChildren) {
        for (const diverseEmoji of emoji.diversityChildren) {
          for (const name of diverseEmoji.names) {
            state[key][name] = diverseEmoji.surrogates
          }
        }
      }
    }
  }

  return state
}
/**
 * Formats the Beautified and Stripped Emoji List
 *
 * @param {*} expanded Parsed Emoji List
 */
Formats the Beautified and Stripped Emoji List
@param {*} expanded Parsed Emoji List
Formats the Beautified and Stripped Emoji List @param { * } expanded Parsed Emoji List
async function format (expanded) {
  const state = {}
  for (const key of Object.keys(expanded)) {
    state[key] = {}
    for (const emoji of expanded[key]) {
      for (const name of emoji.names) {
        state[key][name] = emoji.surrogates
      }
      if (emoji.diversityChildren) {
        for (const diverseEmoji of emoji.diversityChildren) {
          for (const name of diverseEmoji.names) {
            state[key][name] = diverseEmoji.surrogates
          }
        }
      }
    }
  }
  return state
}
async function format ( expanded ) { const state = { } for ( const key of Object . keys ( expanded ) ) { state [ key ] = { } for ( const emoji of expanded [ key ] ) { for ( const name of emoji . names ) { state [ key ] [ name ] = emoji . surrogates } if ( emoji . diversityChildren ) { for ( const diverseEmoji of emoji . diversityChildren ) { for ( const name of diverseEmoji . names ) { state [ key ] [ name ] = diverseEmoji . surrogates } } } } } return state }
Formats the Beautified and Stripped Emoji List
 @param {*} expanded Parsed Emoji List
Formats the Beautified and Stripped Emoji List @param { * } expanded Parsed Emoji List