MCPcopy Create free account
hub / github.com/angular/components / inRange

Function inRange

src/material/core/datetime/native-date-adapter.ts:386–388  ·  view source on GitHub ↗

Checks whether a number is within a certain range.

(value: number, min: number, max: number)

Source from the content-addressed store, hash-verified

384
385/** Checks whether a number is within a certain range. */
386function inRange(value: number, min: number, max: number): boolean {
387 return !isNaN(value) && value >= min && value <= max;
388}

Callers 2

setTimeMethod · 0.85
_parseTimeStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected