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

Function isEnd

src/material/datepicker/calendar-body.ts:653–655  ·  view source on GitHub ↗

Checks whether a value is the end of a range.

(value: number, start: number | null, end: number | null)

Source from the content-addressed store, hash-verified

651
652/** Checks whether a value is the end of a range. */
653function isEnd(value: number, start: number | null, end: number | null): boolean {
654 return start !== null && start !== end && value >= start && value === end;
655}
656
657/** Checks whether a value is inside of a range. */
658function isInRange(

Callers 3

_isRangeEndMethod · 0.85
_isComparisonEndMethod · 0.85
_isPreviewEndMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected