mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 12:31:17 +00:00
* chore: generate API ref using `typedoc` * chore: declutter readme and add links to ytjs.dev * chore: clean up
25 lines
595 B
Markdown
25 lines
595 B
Markdown
[youtubei.js](../../../README.md) / [Helpers](../README.md) / observe
|
|
|
|
# Function: observe()
|
|
|
|
> **observe**\<`T`\>(`obj`): [`ObservedArray`](../type-aliases/ObservedArray.md)\<`T`\>
|
|
|
|
Creates a trap to intercept property access
|
|
and add utilities to an object.
|
|
|
|
## Type Parameters
|
|
|
|
• **T** *extends* [`YTNode`](../classes/YTNode.md)
|
|
|
|
## Parameters
|
|
|
|
• **obj**: `T`[]
|
|
|
|
## Returns
|
|
|
|
[`ObservedArray`](../type-aliases/ObservedArray.md)\<`T`\>
|
|
|
|
## Defined in
|
|
|
|
[src/parser/helpers.ts:394](https://github.com/LuanRT/YouTube.js/blob/eb21af33db708f0355f4fb15881f5d4fabc7b06c/src/parser/helpers.ts#L394)
|