(items, q)
| 117 | } |
| 118 | |
| 119 | function filterText(items, q) { |
| 120 | if (!q) return items; |
| 121 | const needle = String(q).toLowerCase(); |
| 122 | return items.filter((item) => JSON.stringify(item).toLowerCase().includes(needle)); |
| 123 | } |
| 124 | |
| 125 | function matchesAsset(item, id) { |
| 126 | if (!item || !id) return false; |
no outgoing calls
no test coverage detected