Returns a new grouped list of IGemoji items by using a function to select the keys.
IGemoji
import { getGroupedBy } from "@egomobile/emoji"const grouped = getGroupedBy(item => item.category.toLowerCase())for (const { category, items } of grouped) { console.log("Category:", category) console.log("\tItems:", items.map((i) => i.emoji))}
The new list.
The key selector.
Generated using TypeDoc
Returns a new grouped list of
IGemoji
items by using a function to select the keys.Example
Returns
The new list.