Skip to content

API > @blocksuite/blocks > hasClassNameInList

Function: hasClassNameInList ​

hasClassNameInList(element, classList): boolean

Return true if the element has class name in the class list.

Parameters ​

ParameterType
elementElement
classListstring[]

Returns ​

boolean

Defined In ​

packages/blocks/src/_common/utils/query.ts:857