MCPcopy Index your code
hub / github.com/angular/angular / assertLessThanOrEqual

Function assertLessThanOrEqual

packages/core/src/util/assert.ts:75–79  ·  view source on GitHub ↗
(actual: T, expected: T, msg: string)

Source from the content-addressed store, hash-verified

73}
74
75export function assertLessThanOrEqual<T>(actual: T, expected: T, msg: string): asserts actual is T {
76 if (!(actual <= expected)) {
77 throwError(msg, actual, expected, '<=');
78 }
79}
80
81export function assertGreaterThan<T>(actual: T, expected: T, msg: string): asserts actual is T {
82 if (!(actual > expected)) {

Callers 3

arrayInsertFunction · 0.90
arrayInsert2Function · 0.90
assertNumberInRangeFunction · 0.85

Calls 1

throwErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…