MCPcopy Create free account
hub / github.com/angular/angular / hasApplyArgsData

Function hasApplyArgsData

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

Source from the content-addressed store, hash-verified

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

Callers 2

shouldBeIgnoredByZoneFunction · 0.85
isSchedulerTickFunction · 0.85

Calls 1

isArrayMethod · 0.80

Tested by

no test coverage detected