MCPcopy Create free account
hub / github.com/flyfloor/react-component / hasClass

Function hasClass

component/util/dom.js:41–46  ·  view source on GitHub ↗
(el, className)

Source from the content-addressed store, hash-verified

39}
40
41export function hasClass(el, className){
42 if (el && className && el instanceof Node) {
43 return el.className.indexOf(className) !== -1;
44 }
45 return false;
46}
47
48
49export function addClass(el, className) {

Callers 1

toggleSubMenuFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…