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

Function isRepeaterMetadata

packages/core/src/render3/util/control_flow.ts:327–335  ·  view source on GitHub ↗

* Checks if a value looks like RepeaterMetadata by duck-typing. * Can't use instanceof because that would require importing from control_flow.ts.

(value: unknown)

Source from the content-addressed store, hash-verified

325 * Can't use instanceof because that would require importing from control_flow.ts.
326 */
327function isRepeaterMetadata(value: unknown): value is RepeaterMetadataShape {
328 return (
329 value !== null &&
330 typeof value === 'object' &&
331 'hasEmptyBlock' in value &&
332 'trackByFn' in value &&
333 typeof (value as RepeaterMetadataShape).trackByFn === 'function'
334 );
335}
336
337/**
338 * Returns the string representation of the track expression.

Callers 1

forLoopFinderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…