MCPcopy
hub / github.com/pngwn/MDsveX / replace

Function replace

packages/site/static/workers/mdsvex.js:7504–7512  ·  view source on GitHub ↗
(parent, prop, index, node)

Source from the content-addressed store, hash-verified

7502 };
7503
7504 function replace(parent, prop, index, node) {
7505 if (parent) {
7506 if (index !== null) {
7507 parent[prop][index] = node;
7508 } else {
7509 parent[prop] = node;
7510 }
7511 }
7512 }
7513
7514 function remove(parent, prop, index) {
7515 if (parent) {

Callers 1

visitFunction · 0.85

Calls 1

one$1Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…