mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
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/305a398158a6cac82e6ef288fed4bf1661c89d52/src/parser/helpers.ts#L394)
|