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 fefab722_f9e9_db9c_31f2_f84c39788641["orderMatches()"] 0b5eaab6_9345_179e_f96e_cde6155e1ac1["migrateVariantOrder()"] 0b5eaab6_9345_179e_f96e_cde6155e1ac1 -->|calls| fefab722_f9e9_db9c_31f2_f84c39788641 style fefab722_f9e9_db9c_31f2_f84c39788641 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.
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