replace method

bool replace(
  1. String token,
  2. String newToken
)

The replace() method of the DOMTokenList interface replaces an existing token with a new token. If the first token doesn't exist, replace() returns false immediately, without adding the new token to the token list.

Implementation

external bool replace(
  String token,
  String newToken,
);