Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
sommilito-bank2
/
splide-4.1.3
/
src
/
js
/
utils
/
dom
/
hasClass
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * Checks if the element contains the specified class or not. * * @param elm - An element to check. * @param className - A class name that may be contained by the element. * * @return `true` if the element contains the class, or otherwise `false`. */ export function hasClass( elm: Element, className: string ): boolean { return elm && elm.classList.contains( className ); }