Function: hasProperty()
function hasProperty(obj: Readonly<JSONObjectExpression>, key: string): boolean;
Defined in: _internal/jsonc-helpers.ts:240
Determine whether a named property exists in a JSONObjectExpression.
Parametersโ
objโ
Readonly<JSONObjectExpression>
JSON object AST node.
keyโ
string
Property key to look up.
Returnsโ
boolean
true when the property is present.