The Doge standard defines process related to doge-ing.
typedef sequence<DOMString> DogeInit;
[Constructor(optional DogeInit init), Exposed=(Window,Worker)] interface Doge { void append(DOMString word); DOMString random(); };
A Doge
object has an associated
such list.
The
Doge(init)
constructor, when invoked, must run these steps:
Let doge be a new Doge
object.
If init is given, for each word in init, append word to the associated such list.
Return doge.
The
append(word)
method, when invoked, must append word to the associated such list.
The random()
method, when
invoked, must run these steps:
Let list be the associated such list.
If list is empty, throw a TypeError
.
Return a randomly chosen word from list.