Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/components
/ getItemByValue
Function
getItemByValue
src/aria/private/tree/tree.spec.ts:116–118 ·
view source on GitHub ↗
(items: TreeItemPattern<V>[], value: V)
Source
from the content-addressed store, hash-verified
114
}
115
116
function
getItemByValue<V>(items: TreeItemPattern<V>[], value: V) {
117
return
items.find(i => i.value() === value)!;
118
}
119
120
const
treeExample: TestTreeItem<string>[] = [
121
{
Callers
1
tree.spec.ts
File · 0.85
Calls
1
value
Method · 0.45
Tested by
no test coverage detected