MCPcopy Index your code
hub / github.com/angular/components / isSelected

Method isSelected

src/cdk-experimental/selection/selection-set.ts:56–58  ·  view source on GitHub ↗
(value: SelectableWithIndex<T>)

Source from the content-addressed store, hash-verified

54 ) {}
55
56 isSelected(value: SelectableWithIndex<T>): boolean {
57 return this._selectionMap.has(this._getTrackedByValue(value));
58 }
59
60 select(...selects: SelectableWithIndex<T>[]) {
61 if (!this._multiple && selects.length > 1 && (typeof ngDevMode === 'undefined' || ngDevMode)) {

Callers 2

selectMethod · 0.95
deselectMethod · 0.95

Calls 1

_getTrackedByValueMethod · 0.95

Tested by

no test coverage detected