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

Method tryFindChild

src/construct.ts:157–159  ·  view source on GitHub ↗

* Return a direct child by id, or undefined * * @param id Identifier of direct child * @returns the child if found, or undefined

(id: string)

Source from the content-addressed store, hash-verified

155 * @returns the child if found, or undefined
156 */
157 public tryFindChild(id: string): IConstruct | undefined {
158 return this._children?.[sanitizeId(id)];
159 }
160
161 /**
162 * Return a direct child by id

Callers 3

findChildMethod · 0.95
defaultChildMethod · 0.95
construct.test.tsFile · 0.80

Calls 1

sanitizeIdFunction · 0.85

Tested by

no test coverage detected