Reference · Flags a page registers itself
removeFlagsfunction
Takes a registered set out: its flags are no longer found, listed or drawn, and its id can be registered again.
Import it
import { removeFlags } from "@johnmorrisdotca/hata/custom";
Definition
function removeFlags(sourceId: string): boolean
Parameters
| Name | Type | Description |
|---|---|---|
sourceId | string | The set's id, as in its |
Returns
boolean
true when there was such a set.
Examples
import { removeFlags } from "@johnmorrisdotca/hata/custom";
console.log(removeFlags("no-such-set")); // falsefalseWhat it prints (run when this page was built)