raptor
    Preparing search index...

    Class ArrayView<T>

    Helper type for viewing-only arrays, with some viewing methods of Array.

    Type Parameters

    • T

    Implements

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    • Type Parameters

      • T

      Parameters

      • _lengthFn: () => number

        Length of array

      • _at: (idx: number) => T

        Accessor to an array element at index idx

      • _equal: (a: T, b: T) => boolean

      Returns ArrayView<T>

    Properties

    _at: (idx: number) => T

    Accessor to an array element at index idx

    _equal: (a: T, b: T) => boolean
    _length: null | number = null
    _lengthFn: () => number

    Length of array

    Accessors

    Methods

    • Type Parameters

      • U

      Parameters

      • callbackfn: (
            previousValue: U,
            currentValue: T,
            currentIndex: number,
            array: ArrayRead<T>,
        ) => U
      • initialValue: U

      Returns U