Home / Function/ isRangeWithinRange() — react Function Reference

isRangeWithinRange() — react Function Reference

Architecture documentation for the isRangeWithinRange() function in range.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  40fcb906_1b06_4227_f71a_10e07138aa5a["isRangeWithinRange()"]
  8e72bb38_0446_40c5_e453_1f12111e8936["range.ts"]
  40fcb906_1b06_4227_f71a_10e07138aa5a -->|defined in| 8e72bb38_0446_40c5_e453_1f12111e8936
  2ce8168f_79a7_4e00_bc31_3519d4219a3e["comparePositions()"]
  40fcb906_1b06_4227_f71a_10e07138aa5a -->|calls| 2ce8168f_79a7_4e00_bc31_3519d4219a3e
  style 40fcb906_1b06_4227_f71a_10e07138aa5a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/react-forgive/server/src/utils/range.ts lines 20–24

export function isRangeWithinRange(aRange: Range, bRange: Range): boolean {
  const startComparison = comparePositions(aRange[0], bRange[0]);
  const endComparison = comparePositions(aRange[1], bRange[1]);
  return startComparison >= 0 && endComparison <= 0;
}

Domain

Subdomains

Frequently Asked Questions

What does isRangeWithinRange() do?
isRangeWithinRange() is a function in the react codebase, defined in compiler/packages/react-forgive/server/src/utils/range.ts.
Where is isRangeWithinRange() defined?
isRangeWithinRange() is defined in compiler/packages/react-forgive/server/src/utils/range.ts at line 20.
What does isRangeWithinRange() call?
isRangeWithinRange() calls 1 function(s): comparePositions.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free