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>
18 lines
No EOL
586 B
Text
18 lines
No EOL
586 B
Text
export default function getIgnoreAttributesFn(ignoreAttributes) {
|
|
if (typeof ignoreAttributes === 'function') {
|
|
return ignoreAttributes
|
|
}
|
|
if (Array.isArray(ignoreAttributes)) {
|
|
return (attrName) => {
|
|
for (const pattern of ignoreAttributes) {
|
|
if (typeof pattern === 'string' && attrName === pattern) {
|
|
return true
|
|
}
|
|
if (pattern instanceof RegExp && pattern.test(attrName)) {
|
|
return true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return () => false
|
|
} |