MCPcopy Index your code
hub / github.com/jsdoc/jsdoc / removeChild

Function removeChild

lib/jsdoc/tutorial.js:15–21  ·  view source on GitHub ↗

* Removes child tutorial from the parent. Does *not* unset child.parent though. * * @param {Tutorial} parent - parent tutorial. * @param {Tutorial} child - Old child. * @private

({children}, child)

Source from the content-addressed store, hash-verified

13 * @private
14 */
15function removeChild({children}, child) {
16 const index = children.indexOf(child);
17
18 if (index !== -1) {
19 children.splice(index, 1);
20 }
21}
22
23/**
24 * Adds a child to the parent tutorial. Does *not* set child.parent though.

Callers 1

setParentMethod · 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…