Finds the first occurence of an IGemoji item by a filter that is used with the description of each item.
IGemoji
description
import { findFirst } from "@egomobile/emoji"// is is case-insensitiveconst firstFaceByString = findFirst("findFirst")console.log("firstFaceByString", firstFaceByString)// same with RegExconst firstFaceByRegex = findFirst(/(face)/i)console.log("firstFaceByRegex", firstFaceByRegex)
The matching item or undefined if not found.
undefined
The filter.
Generated using TypeDoc
Finds the first occurence of an
IGemoji
item by a filter that is used with thedescription
of each item.Example
Returns
The matching item or
undefined
if not found.