Rocky_Mountain_Vending/.pnpm-store/v10/files/6f/dd28068db123cba3496a556bf527933d635eafbadfad911dc7ec20e63f8a14f5ffb07c782fa059cda7c189fc0f43923d8bfb1d969c5fb2abec295c66ddcefe
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

10 lines
No EOL
380 B
Text

/**
* Checks if a given element has a CSS class.
*
* @param element the element
* @param className the CSS class name
*/
export default function hasClass(element, className) {
if (element.classList) return !!className && element.classList.contains(className);
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
}