* 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)
| 13 | * @private |
| 14 | */ |
| 15 | function 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…