Reference · Draw a bracket, a table or a road to the final
isEmblemIdfunction
Whether a trophy value names an emblem ("trophy:hockey-cup", "medal:gold/line") rather than being inline SVG or an image address.
Import it
import { isEmblemId } from "@johnmorrisdotca/taisen-brackets";
Definition
function isEmblemId(value: string): boolean
Parameters
| Name | Type | Description |
|---|---|---|
value | string | The text of a |
Returns
boolean
true for an emblem id.
Examples
import { isEmblemId } from "@johnmorrisdotca/taisen-brackets";
console.log(isEmblemId("trophy:hockey-cup"), isEmblemId("https://example.com/cup.svg"));true falseWhat it prints (run when this page was built)