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

Function isEmptyInputValue

packages/forms/src/validators.ts:28–30  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

26import type {AbstractControl} from './model/abstract_model';
27
28function isEmptyInputValue(value: unknown): boolean {
29 return value == null || lengthOrSize(value) === 0;
30}
31
32/**
33 * Extract the length property in case it's an array or a string.

Callers 3

requiredValidatorFunction · 0.85
emailValidatorFunction · 0.85
patternValidatorFunction · 0.85

Calls 1

lengthOrSizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…