• Constructs a new ReactiveArray with the given initial content.

    Type Parameters

    • T

    Parameters

    • Optionalitems: Iterable<T, any, any>

    Returns ReactiveArray<T>

    // Empty
    const array1 = reactiveArray<number>();

    // With initial content
    const array2 = reactiveArray<number>([1, 2, 3]);