supports

The supports JS DOMTokenList returns true if token is in the associated attribute’s supported tokens. Returns false otherwise.

Throws a TypeError if the associated attribute has no supported tokens defined.

Syntax

tokenlist.supports(token)

Parameters

token

A string.

Examples

1 · false

2 · true

HomeMenu