---
schema_version: "1"
id: 6657f9d69324422d7e3e85ba29ace79ba43076e56c4b81c4fd121e588405c2d3
title: isInstanceOf()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-component-isinstanceof.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-component-isinstanceof.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3bb345096251894a614971db4ce64286afb41cfc4b30d73fd712cc2c045c2613
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# isInstanceOf()

Checks whether a component is an instance of the given component or interface name.

## Signature

`isInstanceOf(String name)`

## Parameters

**_name_:** Type: `String`. The name of the component or interface, with a format of `namespace:componentName`.

## Returns

**Type: `Boolean`** Returns `true` if the component is an instance, or `false` otherwise.

