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

Function assertFunction

packages/core/src/util/assert.ts:39–43  ·  view source on GitHub ↗
(actual: any, msg: string)

Source from the content-addressed store, hash-verified

37}
38
39export function assertFunction(actual: any, msg: string): asserts actual is Function {
40 if (!(typeof actual === 'function')) {
41 throwError(msg, actual === null ? 'null' : typeof actual, 'function', '===');
42 }
43}
44
45export function assertEqual<T>(actual: T, expected: T, msg: string) {
46 if (!(actual == expected)) {

Callers 2

processCleanupsFunction · 0.90
ɵɵrepeaterCreateFunction · 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…