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

Function assertNotDefined

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

Source from the content-addressed store, hash-verified

95}
96
97export function assertNotDefined<T>(actual: T, msg: string) {
98 if (actual != null) {
99 throwError(msg, actual, null, '==');
100 }
101}
102
103export function assertDefined<T>(actual: T | null | undefined, msg: string): asserts actual is T {
104 if (actual == null) {

Callers 1

twoWayBindingFunction · 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…