orderMatches() — tailwindcss Function Reference
Architecture documentation for the orderMatches() function in migrate-variant-order.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 8c83c9e0_d0ae_7991_7e76_8c78f63aa77e["orderMatches()"] 1490304f_c9fd_75da_db3f_0c12d428c646["migrate-variant-order.ts"] 8c83c9e0_d0ae_7991_7e76_8c78f63aa77e -->|defined in| 1490304f_c9fd_75da_db3f_0c12d428c646 d6f03aba_eecb_9486_a7b9_25fc0f87915d["migrateVariantOrder()"] d6f03aba_eecb_9486_a7b9_25fc0f87915d -->|calls| 8c83c9e0_d0ae_7991_7e76_8c78f63aa77e style 8c83c9e0_d0ae_7991_7e76_8c78f63aa77e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/template/migrate-variant-order.ts lines 130–135
function orderMatches<T>(a: T[], b: T[]): boolean {
if (a.length !== b.length) {
return false
}
return a.every((v, i) => b[i] === v)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does orderMatches() do?
orderMatches() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/codemods/template/migrate-variant-order.ts.
Where is orderMatches() defined?
orderMatches() is defined in packages/@tailwindcss-upgrade/src/codemods/template/migrate-variant-order.ts at line 130.
What calls orderMatches()?
orderMatches() is called by 1 function(s): migrateVariantOrder.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free