className.has
className.has.call(el, cls)
Determine wheter a DOM node has a given class name.
var className = require("can-util/dom/class-name/class-name");
var isContainer = className.has.call(el, "container");
Parameters
- className
{String}
:A string representing a single class name token
Returns
{Boolean}
:
true if the element's class attribute contains the token, false otherwise.