MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / findItemById

Function findItemById

packages/shared/src/utils.ts:148–153  ·  view source on GitHub ↗
(array: T[], id: string)

Source from the content-addressed store, hash-verified

146}
147
148export function findItemById<T extends {id: string}>(array: T[], id: string): T | undefined {
149 for (let i = 0; i < array.length; i++) {
150 const item = array[i]!
151 if (item.id === id) return item
152 }
153}
154
155export const splitOnColon = <T extends string>(
156 str: T,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…