Loading homepage
Create a chainable wrapper for adding, removing, toggling, and checking an element’s CSS classes.
Input: $(element).addClass("active selected").removeClass("selected").toggleClass("ready", true); Output: The element has active and ready classes.
Input: $(element).hasClass("active"); Output: true when active is a complete class token.
Implement the exported function in index.js or index.ts. Tests provide fixtures for the required behavior.