src/index.js
function findEmoji(names, match) {
  const compare = match.toLowerCase();
  for (let i = 0; i < names.length; i += 1) {
    const name = names[i].toLowerCase();
    if (name === compare) {
      return names[i];
    }
  }

  return null;
}
function findEmoji(names, match) {
  const compare = match.toLowerCase();
  for (let i = 0; i < names.length; i += 1) {
    const name = names[i].toLowerCase();
    if (name === compare) {
      return names[i];
    }
  }

  return null;
}
Case-insensitively get the correct emoji name from the possible emoji for an
input string.

@param {Array.<string>} names All possible emoji names.
@param {string} match The input string.
@return {string|null} The correct emoji name (including casing), or `null` if
the requested emoji does not exist.