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

Function isOptionsObj

packages/forms/src/model/abstract_model.ts:257–265  ·  view source on GitHub ↗
(
  validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null,
)

Source from the content-addressed store, hash-verified

255}
256
257export function isOptionsObj(
258 validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null,
259): validatorOrOpts is AbstractControlOptions {
260 return (
261 validatorOrOpts != null &&
262 !Array.isArray(validatorOrOpts) &&
263 typeof validatorOrOpts === 'object'
264 );
265}
266
267export function assertControlPresent(parent: any, isGroup: boolean, key: string | number): void {
268 const controls = parent.controls as {[key: string | number]: AbstractControl<any>};

Callers 4

constructorMethod · 0.90
pickValidatorsFunction · 0.85
pickAsyncValidatorsFunction · 0.85
_setUpdateStrategyFunction · 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…