function getItemIndexByCharacter(character, startIndex = 0) {
  return (
    items.slice(startIndex).findIndex(item => {
      // console.log(item.toLowerCase(), character.toLowerCase(), item.toLowerCase().startsWith(character.toLowerCase()))

      return item.toLowerCase().startsWith(character.toLowerCase())
    }) + startIndex
  )
}
Return the id of the item that strats with the caracter.
@param {string} character The start of the item string.
@param {number} startIndex The index to start searching.
@returns number The index of the item.