vec2-fn
    Preparing search index...

    Function equal

    • Check whether two vectors are exactly equal.

      Parameters

      Returns boolean

      • Boolean result of whether the vectors are equal.
      equal({ x: 1, y: 2 }, { x: 1, y: 2 }); // -> true
      equal({ x: 1, y: 1 }, 1); // -> true