---
name: "hasSleepAbility"
mode: "api"
versionRequirements:
  - { name: "@ray-js/lock-sdk", version: "1.0.0" }
title: "hasSleepAbility - Check if lock supports sleep function."
summary: "Check if lock supports sleep function."
---

## hasSleepAbility

> [VERSION] @ray-js/lock-sdk >= 1.0.0

### Description

Check whether the lock supports the sleep feature

### Parameters

None


### Return Value

None


### Examples

#### Example

```ts
import { hasSleepAbility } from '@ray-js/lock-sdk';
const able = hasSleepAbility();
```
