dom_token_list-functions-contains_all

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i dom_token_list-functions-contains_all

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.42 kB

Total Files

4

Last publish

Collaborators

  • webciter