Function: hasProperty()
hasProperty(
obj:Readonly<JSONObjectExpression>,key:string):boolean
Defined in: _internal/jsonc-helpers.ts:250
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.