Reference · Flags a page registers itself
customGroupsfunction
The groups of the flags registered and on, in the order each first appears, with the ids in each: for a picker that shows custom flags beside the built-in ones.
Import it
import { customGroups } from "@johnmorrisdotca/hata/custom";
Definition
function customGroups(): { group: string; ids: string[]; }[]
Returns
{ group: string; ids: string[]; }[]
[{ group, ids }]: empty when nothing is registered.
Examples
import { customGroups } from "@johnmorrisdotca/hata/custom";
for (const { group, ids } of customGroups()) console.log(group, ids.length);