@bodil/signal
    Preparing search index...

    Class ReadonlyArray<A>

    A read-only view of a Signal.Array.

    This acts just like the Signal.Array it was created from, mirroring the current contents of the source array, but without the ability to modify it.

    Type Parameters

    • A

    Hierarchy (View Summary)

    Implements

    Methods

    • Test whether a value is an array with identical contents to this array.

      Parameters

      • other: unknown

      Returns other is ReadonlyArray<A>

    • Find the first index in the array for which the predicate function returns true for the value at that index, or -1 if it never does.

      Parameters

      • predicate: (value: A, index: number, obj: A[]) => boolean
      • OptionalthisArg: any

      Returns number

    • Get the value at the given index, or None if the index is out of bounds.

      Parameters

      • index: number

      Returns Option<A>

      TypeError of index is not an integer

    • Find the index at which the given value first occurs in the array, optionally starting at fromIndex. If the value doesn't occur in the array, return -1.

      Parameters

      • value: A
      • OptionalfromIndex: number

      Returns number

    • Test whether the array is empty.

      Returns boolean

    • Get the size of the array.

      Returns number