MCPcopy Index your code
hub / github.com/immerjs/immer / findById

Function findById

__tests__/patch.js:927–931  ·  view source on GitHub ↗
(set, id)

Source from the content-addressed store, hash-verified

925
926describe("sets - mutate - 1", () => {
927 const findById = (set, id) => {
928 for (const item of set) {
929 if (item.id === id) return item
930 }
931 }
932 runPatchTests(
933 "",
934 new Set([

Callers 1

patch.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…