Function: findLastProperty()
function findLastProperty(
obj: Readonly<JSONObjectExpression>,
key: string
): JSONProperty | undefined;
Defined in: _internal/jsonc-helpers.ts:110
Find the last occurrence of a named JSONC property.
Parametersโ
objโ
Readonly<JSONObjectExpression>
JSON object AST node.
keyโ
string
Property key to search for.
Returnsโ
JSONProperty | undefined
The last matching property, if present.