contains(value)

An alias for has(value) on sets that increases the overlap with the W3C DOMTokenList interface, implemented by classList.

On collections

Usage

  • contains(value)

Related

  • has(value)

    Whether an equivalent value exists in this collection.