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
  2fe09378_9851_33dd_2eb1_6dba5d483963["orderMatches()"]
  e3144eb9_0666_0bdb_e31d_1094b50abdd7["migrate-variant-order.ts"]
  2fe09378_9851_33dd_2eb1_6dba5d483963 -->|defined in| e3144eb9_0666_0bdb_e31d_1094b50abdd7
  4b9b4a6d_0786_22dc_60cb_a53dc01dd582["migrateVariantOrder()"]
  4b9b4a6d_0786_22dc_60cb_a53dc01dd582 -->|calls| 2fe09378_9851_33dd_2eb1_6dba5d483963
  style 2fe09378_9851_33dd_2eb1_6dba5d483963 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)
}

Subdomains

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