Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

JS_IsConstructor

This article needs a technical review. How you can help.

This article covers features introduced in SpiderMonkey 24

Return whether the given function is a valid constructor.

Syntax

bool
JS_IsConstructor(JSFunction *fun);
Name Type Description
fun JSFunction * The function to examine.

Description

JS_IsConstructor determines if a specified function, fun is a valid constructor object. If so, JS_IsConstructor returns true. Otherwise it returns false.

See Also

Document Tags and Contributors

 Contributors to this page: kscarfone, arai
 Last updated by: kscarfone,