* 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)
| 325 | * Can't use instanceof because that would require importing from control_flow.ts. |
| 326 | */ |
| 327 | function 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…