Skip to content

Extend the ability of ClassList to search for many classes

License

Notifications You must be signed in to change notification settings

webciter/containsAll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

containsAll

Extend the ability of classList, relList, sandBox and htmlFor to search for many instead of single values

<div class="class_one class_two">

</div>

var element = document.getElementById("element_id");
element.classList.containsAll("class_one class_two"); // returns true

Installation

npm i dom_token_list-functions-contains_all

For Information About DOMTokenList

https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList

About

Extend the ability of ClassList to search for many classes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published