Function
keyIncludes
packages/tailwindcss/src/compat/plugin-api.ts:134–139
· packages/tailwindcss/src/compat/plugin-api.ts::keyIncludes
(object: Record<string, any>, search: string)
Source from the content-addressed store, hash-verified
| 132 | if (variant.some((v) => v.includes(class="st">':merge('))) return |
| 133 | } else if (typeof variant === class="st">'object') { |
| 134 | function keyIncludes(object: Record<string, any>, search: string): boolean { |
| 135 | return Object.entries(object).some( |
| 136 | ([key, value]) => |
| 137 | key.includes(search) || (typeof value === class="st">'object' && keyIncludes(value, search)), |
| 138 | ) |
| 139 | } |
| 140 | if (keyIncludes(variant, class="st">':merge(')) return |
| 141 | } |
| 142 | |
Tested by
no test coverage detected