Skip to content

JsObjectHasProperty

rhuanjl edited this page Sep 1, 2018 · 1 revision

Determines whether an object has a property.

Syntax

CHAKRA_API
    JsObjectHasProperty(
        _In_ JsValueRef object,
        _In_ JsValueRef key,
        _Out_ bool *hasProperty);

Parameters

  • object: The object that may contain the property.
  • key: The key (JavascriptString or JavascriptSymbol) to the property.
  • hasProperty: Whether the object (or a prototype) has the property.

Return Value

The code JsNoError if the operation succeeded, a failure code otherwise.

Remarks

This API is experimental and may have breaking changes later.

Requires an active script context.

Clone this wiki locally