dom_token_list-functions-contains_all

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

Usage no npm install needed!

<script type="module">
  import domTokenListFunctionsContainsAll from 'https://cdn.skypack.dev/dom_token_list-functions-contains_all';
</script>

README

containsAll

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


<div class="class_one class_two">

</di>


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

For Information About DOMTokenList

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