Skip to content

JsInstanceOf

Limin Zhu edited this page Oct 9, 2015 · 1 revision

Performs JavaScript "instanceof" operator test.

Syntax

STDAPI_(JsErrorCode)
    JsInstanceOf(
    _In_ JsValueRef object,
    _In_ JsValueRef constructor,
    _Out_ bool *result);

Parameters

  • object: The object to test.
  • constructor: The constructor function to test against.
  • result: Whether "object instanceof constructor" is true.

Return Value

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

Remarks

Requires an active script context.

Clone this wiki locally