@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
65 lines (34 loc) • 1.06 kB
Markdown
---
lang: en
title: 'API docs: core.islifecycleobserver'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/core
permalink: /doc/en/lb4/apidocs.core.islifecycleobserver.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/core](./core.md) > [isLifeCycleObserver](./core.islifecycleobserver.md)
## isLifeCycleObserver() function
Test if an object implements LifeCycleObserver
**Signature:**
```typescript
export declare function isLifeCycleObserver(obj: object): obj is LifeCycleObserver;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
obj
</td><td markdown="1">
object
</td><td markdown="1">
An object
</td></tr>
</tbody></table>
**Returns:**
obj is [LifeCycleObserver](./core.lifecycleobserver.md)