MCPcopy Create free account
hub / github.com/aws/constructs / tryRemoveChild

Method tryRemoveChild

src/construct.ts:430–434  ·  view source on GitHub ↗

* Remove the child with the given name, if present. * * @returns Whether a child with the given name was deleted.

(childName: string)

Source from the content-addressed store, hash-verified

428 * @returns Whether a child with the given name was deleted.
429 */
430 public tryRemoveChild(childName: string): boolean {
431 if (!this._children || !(childName in this._children)) { return false; }
432 delete this._children[childName];
433 return true;
434 }
435
436 /**
437 * Adds a validation to this construct.

Callers 1

construct.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected