MCPcopy Create free account
hub / github.com/angular/components / _coerceValue

Method _coerceValue

src/cdk/listbox/listbox.ts:1035–1037  ·  view source on GitHub ↗

* Coerces a value into an array representing a listbox selection. * @param value The value to coerce * @return An array

(value: readonly T[])

Source from the content-addressed store, hash-verified

1033 * @return An array
1034 */
1035 private _coerceValue(value: readonly T[]) {
1036 return value == null ? [] : coerceArray(value);
1037 }
1038
1039 /**
1040 * Get the sublist of values that do not represent valid option values in this listbox.

Callers 1

_setSelectionMethod · 0.95

Calls 1

coerceArrayFunction · 0.90

Tested by

no test coverage detected