contains

The contains JS DOMTokenList returns true if token is present; otherwise false.

Syntax

tokenlist.contains(token)

Parameters

token

A string.

Examples

1 · false

2 · true

add

item

length

remove

replace

supports

toggle

value

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu