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

Function assertSame

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

Source from the content-addressed store, hash-verified

55}
56
57export function assertSame<T>(actual: T, expected: T, msg: string): asserts actual is T {
58 if (!(actual === expected)) {
59 throwError(msg, actual, expected, '===');
60 }
61}
62
63export function assertNotSame<T>(actual: T, expected: T, msg: string) {
64 if (!(actual !== expected)) {

Callers 2

allocExpandoFunction · 0.90
initializeDirectivesFunction · 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…