Function arrayShallowEqual

  • Shallow compare two arrays.

    Parameters

    • arrA: any

      any value

    • arrB: any

      any value

    Returns boolean

    false if any of: 1. one of arrA or arrB is an array and the other is not 2. arrA and arrB have different lengths 3. arrA and arrB have different values at any index