다음을 통해 공유


JsInstanceOf Function

Performs JavaScript instanceof operator test.

Syntax

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 the "object instanceof constructor" is true.

Return Value

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

Remarks

Requires an active script context.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)