MCPcopy
hub / github.com/angular/angular / hasApplyArgsData

Function hasApplyArgsData

packages/core/src/zone/ng_zone.ts:589–601  ·  view source on GitHub ↗
(applyArgs: unknown, key: string)

Source from the content-addressed store, hash-verified

587}
588
589function hasApplyArgsData(applyArgs: unknown, key: string) {
590 if (!Array.isArray(applyArgs)) {
591 return false;
592 }
593
594 // We should only ever get 1 arg passed through to invokeTask.
595 // Short circuit here incase that behavior changes.
596 if (applyArgs.length !== 1) {
597 return false;
598 }
599
600 return applyArgs[0]?.data?.[key] === true;
601}
602
603// Set of options recognized by the NgZone.
604export interface InternalNgZoneOptions {

Callers 2

shouldBeIgnoredByZoneFunction · 0.85
isSchedulerTickFunction · 0.85

Calls 1

isArrayMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…