MCPcopy
hub / github.com/GitbookIO/gitbook / editArticleInPart

Function editArticleInPart

lib/modifiers/summary/mergeAtLevel.js:37–42  ·  view source on GitHub ↗

Edit an article in a part @param {Part} part @param {String} level @param {Article} newArticle @return {Part}

(part, level, newArticle)

Source from the content-addressed store, hash-verified

35 @return {Part}
36*/
37function editArticleInPart(part, level, newArticle) {
38 var articles = part.getArticles();
39 articles = editArticleInList(articles, level, newArticle);
40
41 return part.set('articles', articles);
42}
43
44
45/**

Callers 1

mergeAtLevelFunction · 0.85

Calls 1

editArticleInListFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…