@nevware21/ts-utils
    Preparing search index...

    Interface WritableArrayLike<T>

    Writable (mutable) ArrayLike interface. This is similar to the built-in ArrayLike, but with mutable properties.

    0.14.0

    const buf: WritableArrayLike<number> = { length: 3, 0: 1, 1: 2, 2: 3 };
    buf[1] = 42;
    buf.length = 4;
    interface WritableArrayLike<T> {
        length: number;
        [index: number]: T;
    }

    Type Parameters

    • T

      Identifies the base type of array elements

    Indexable

    • [index: number]: T
    Index

    Properties

    Properties

    length: number