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

Function isStart

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

Checks whether a value is the start of a range.

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

Source from the content-addressed store, hash-verified

646
647/** Checks whether a value is the start of a range. */
648function isStart(value: number, start: number | null, end: number | null): boolean {
649 return end !== null && start !== end && value < end && value === start;
650}
651
652/** Checks whether a value is the end of a range. */
653function isEnd(value: number, start: number | null, end: number | null): boolean {

Callers 3

_isRangeStartMethod · 0.85
_isComparisonStartMethod · 0.85
_isPreviewStartMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected