{"json_modified": "2016-03-28T07:47:54.313636", "uuid": "61caf96d-db62-4d71-94ef-fab70b443918", "title": "JS_InstanceOf", "url": "/en-US/docs/Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_InstanceOf", "tags": ["R\u00e9f\u00e9rence", "Reference", "SpiderMonkey", "JSAPI Reference"], "translations": [], "modified": "2015-01-18T12:42:00", "label": "JS_InstanceOf", "localization_tags": [], "locale": "en-US", "id": 1402, "last_edit": "2015-01-18T12:41:52", "summary": "JS_InstanceOf
can be used to check whether an object obj is of a particular JSClass
. To use it this way, pass NULL
for argv
. JS_InstanceOf
returns true
if obj
is of the given class and false
otherwise. That is, it returns JS_GetClass(obj) == clasp
.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Description", "title": "Description"}, {"id": "See_Also", "title": "See Also"}], "slug": "Mozilla/Projects/SpiderMonkey/JSAPI_reference/JS_InstanceOf", "review_tags": ["technical"]}