ixfx
    Preparing search index...

    Function isEqual

    • Returns true if the two arrays have the same length, and have the same items at the same indexes.

      By default uses === semantics for equality checking.

      Use isEqualIgnoreOrder if you don't care whether items are in same order.

      isEqual([ 1, 2, 3], [ 1, 2, 3 ]); // true
      isEqual([ 1, 2, 3], [ 3, 2, 1 ]); // false

      Compare by value instead:

      // Eg. compare objects based on their 'name' property
      isEqual(a, b, v => v.name);

      Type Parameters

      • T

      Parameters

      • arrayA: T[]
      • arrayB: T[]
      • comparerOrKey: IsEqual<T> | ((value: T) => string) = isEqualDefault

        Function to compare values or produce a string key

      Returns boolean

      If inputs are not arrays