mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
28 lines
669 B
Markdown
28 lines
669 B
Markdown
[youtubei.js](../../../README.md) / [Helpers](../README.md) / observe
|
|
|
|
# Function: observe()
|
|
|
|
> **observe**\<`T`\>(`obj`): [`ObservedArray`](../type-aliases/ObservedArray.md)\<`T`\>
|
|
|
|
Creates an observed array that provides additional utility methods for array manipulation and filtering.
|
|
|
|
## Type Parameters
|
|
|
|
• **T** *extends* [`YTNode`](../classes/YTNode.md)
|
|
|
|
Type extending YTNode
|
|
|
|
## Parameters
|
|
|
|
• **obj**: `T`[]
|
|
|
|
Array to be observed
|
|
|
|
## Returns
|
|
|
|
[`ObservedArray`](../type-aliases/ObservedArray.md)\<`T`\>
|
|
|
|
## Defined in
|
|
|
|
[src/parser/helpers.ts:424](https://github.com/LuanRT/YouTube.js/blob/e1650e12979e68b9546bc63989f86b651960a10a/src/parser/helpers.ts#L424)
|