Home / Function/ orderMatches() — tailwindcss Function Reference

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
  88a62277_79c8_6938_521f_410b61dfc76c["orderMatches()"]
  52b790cf_9f93_aadf_60b7_6333be12e6cb["migrateVariantOrder()"]
  52b790cf_9f93_aadf_60b7_6333be12e6cb -->|calls| 88a62277_79c8_6938_521f_410b61dfc76c
  style 88a62277_79c8_6938_521f_410b61dfc76c 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

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