Skip to main content
Module

x/tui/mod.ts>makeArrayMethodsReactive

🦕 Deno module for creating Terminal User Interfaces
Latest
function makeArrayMethodsReactive
import { makeArrayMethodsReactive } from "https://deno.land/x/tui@2.1.11/mod.ts";

Replaces push, pop, sort and replace methods in given array with ones that provide reactivity.

When map gets in any way updated propagate method gets called on provided signal.

Type Parameters

T extends Array<unknown>
S

Parameters

array: T

– When set to true it checks whether array got directly modified via index

signal: Signal<S>
optional
watchObjectIndex = [UNSUPPORTED]