@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
37 lines (23 loc) • 933 B
Markdown
lang: en
title: 'API docs: boot.isclass'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/boot
permalink: /doc/en/lb4/apidocs.boot.isclass.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/boot](./boot.md) > [isClass](./boot.isclass.md)
## isClass() function
Given a function, returns true if it is a class, false otherwise.
<b>Signature:</b>
```typescript
export declare function isClass(target: any): target is Constructor<any>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| target | any | The function to check if it's a class or not. |
<b>Returns:</b>
target is [Constructor](./context.constructor.md)<!-- --><any>
True if target is a class. False otherwise.