supports
Description
The supports of DOMTokenList for JS 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.