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

Method _getInvalidOptionValues

src/cdk/listbox/listbox.ts:1044–1048  ·  view source on GitHub ↗

* Get the sublist of values that do not represent valid option values in this listbox. * @param values The list of values * @return The sublist of values that are not valid option values

(values: readonly T[])

Source from the content-addressed store, hash-verified

1042 * @return The sublist of values that are not valid option values
1043 */
1044 private _getInvalidOptionValues(values: readonly T[]) {
1045 const isEqual = this.compareWith || Object.is;
1046 const validValues = (this.options || []).map(option => option.value);
1047 return values.filter(value => !validValues.some(validValue => isEqual(value, validValue)));
1048 }
1049
1050 /** Get the index of the last triggered option. */
1051 private _getLastTriggeredIndex() {

Callers 2

_updateInternalValueMethod · 0.95
_verifyOptionValuesMethod · 0.95

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected