API > @blocksuite/blocks > hasClassNameInList
Function: hasClassNameInList ​
hasClassNameInList(
element,classList):boolean
Return true if the element has class name in the class list.
Parameters ​
| Parameter | Type | 
|---|---|
element | Element | 
classList | string[] | 
Returns ​
boolean
Defined In ​
packages/blocks/src/_common/utils/query.ts:857