enableFlags関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Switches a registered set off or on without forgetting it: while off, its flags are not found, listed or credited.
インポート
import { enableFlags } from "@johnmorrisdotca/hata/custom";
定義
function enableFlags(sourceId: string, on?: boolean): boolean
引数
| 名前 | 型 | 説明 |
|---|---|---|
sourceId | string | The set's id. |
on (省略可) | boolean |
|
戻り値
boolean
true when there was such a set.
例
import { enableFlags } from "@johnmorrisdotca/hata/custom";
console.log(enableFlags("no-such-set", false)); // falsefalse出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。