Function: findProperty()
findProperty(
obj:Readonly<JSONObjectExpression>,key:string):JSONProperty|undefined
Defined in: _internal/jsonc-helpers.ts:110
Find a named property within a JSONObjectExpression.
Parametersโ
objโ
Readonly<JSONObjectExpression>
JSON object AST node.
keyโ
string
Property key to search for.
Returnsโ
JSONProperty | undefined
The matching JSONProperty when present; otherwise undefined.