MCPcopy Create free account
hub / github.com/docker/getting-started / hasClass

Function hasClass

app/src/static/js/react-bootstrap.js:6020–6022  ·  view source on GitHub ↗
(element, className)

Source from the content-addressed store, hash-verified

6018exports.default = hasClass;
6019
6020function hasClass(element, className) {
6021 if (element.classList) return !!className && element.classList.contains(className);else return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
6022}
6023
6024module.exports = exports["default"];
6025

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…