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

Function assertLessThan

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

Source from the content-addressed store, hash-verified

67}
68
69export function assertLessThan<T>(actual: T, expected: T, msg: string): asserts actual is T {
70 if (!(actual < expected)) {
71 throwError(msg, actual, expected, '<');
72 }
73}
74
75export function assertLessThanOrEqual<T>(actual: T, expected: T, msg: string): asserts actual is T {
76 if (!(actual <= expected)) {

Callers 8

constructorMethod · 0.90
_adjustIndexMethod · 0.90
assertTNodeCreationIndexFunction · 0.90
bindingUpdatedFunction · 0.90
setSelectedIndexFunction · 0.90
updateStylingMapFunction · 0.90
interpolationVFunction · 0.90
getTNodeFunction · 0.90

Calls 1

throwErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…