isEmblemId関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Whether a trophy value names an emblem ("trophy:hockey-cup", "medal:gold/line") rather than being inline SVG or an image address.
インポート
import { isEmblemId } from "@johnmorrisdotca/taisen-brackets";
定義
function isEmblemId(value: string): boolean
引数
| 名前 | 型 | 説明 |
|---|---|---|
value | string | The text of a |
戻り値
boolean
true for an emblem id.
例
import { isEmblemId } from "@johnmorrisdotca/taisen-brackets";
console.log(isEmblemId("trophy:hockey-cup"), isEmblemId("https://example.com/cup.svg"));true false出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。