---
title: "LimitedStack"
---
# LimitedStack

Defined in: [src/core/helpers/utils/stack.ts:13](https://github.com/xdan/jodit/blob/main/src/core/helpers/utils/stack.ts#L13)

## Type Parameters

| Type Parameter |
| ------ |
| `T` |

### Constructor

**new LimitedStack**\<`T`\>(`limit`): `LimitedStack`\<`T`\>

Defined in: [src/core/helpers/utils/stack.ts:16](https://github.com/xdan/jodit/blob/main/src/core/helpers/utils/stack.ts#L16)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `limit` | `number` |

#### Returns

`LimitedStack`\<`T`\>

### limit

`readonly` **limit**: `number`

Defined in: [src/core/helpers/utils/stack.ts:16](https://github.com/xdan/jodit/blob/main/src/core/helpers/utils/stack.ts#L16)

### push()

**push**(`item`): `this`

Defined in: [src/core/helpers/utils/stack.ts:18](https://github.com/xdan/jodit/blob/main/src/core/helpers/utils/stack.ts#L18)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `item` | `T` |

#### Returns

`this`

***

### pop()

**pop**(): [`CanUndef`](../modules/types.html#canundef)\<`T`\>

Defined in: [src/core/helpers/utils/stack.ts:28](https://github.com/xdan/jodit/blob/main/src/core/helpers/utils/stack.ts#L28)

#### Returns

[`CanUndef`](../modules/types.html#canundef)\<`T`\>

***

### find()

**find**(`clb`): [`CanUndef`](../modules/types.html#canundef)\<`T`\>

Defined in: [src/core/helpers/utils/stack.ts:32](https://github.com/xdan/jodit/blob/main/src/core/helpers/utils/stack.ts#L32)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `clb` | (`item`) => `boolean` |

#### Returns

[`CanUndef`](../modules/types.html#canundef)\<`T`\>
