@zeroc/ice
    Preparing search index...

    Class ArrayUtil

    Utility functions for arrays.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Creates a shallow copy of the array.

      Type Parameters

      • T

      Parameters

      • arr: T[]

        The array to clone.

      Returns T[]

      A shallow copy of the array.

    • Compares two arrays for equality.

      Parameters

      • lhs: any[] | Uint8Array<ArrayBufferLike>

        The first array to compare.

      • rhs: any[] | Uint8Array<ArrayBufferLike>

        The second array to compare.

      • OptionalvaluesEqual: (v1: any, v2: any) => boolean

        An optional function that compares two values for equality. If not provided, the comparison is done using the elements default equal comparator.

      Returns boolean

      True if the arrays are equal, false otherwise.