defineScramblefunction
Register <kyuubu-scramble>, once. Where there is no browser, or the name
is already taken, it does nothing.
Import it
import { defineScramble } from "@johnmorrisdotca/kyuubu/element";
Also exported from: @johnmorrisdotca/kyuubu/element/define
Definition
function defineScramble(name?: string): void
Parameters
| Name | Type | Description |
|---|---|---|
name (optional) | string | The custom-element name to register. |
Examples
import { defineScramble } from "@johnmorrisdotca/kyuubu/element";
defineScramble();
console.log(customElements.get("kyuubu-scramble") !== undefined);