Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

typescript get class list for element

// event => is your element
const isClassExist = event.target.classList.contains('someClass');
 
PREVIOUS NEXT
Tagged: #typescript #class #list #element
ADD COMMENT
Topic
Name
7+4 =