@extremejs/utils - v1.0.0-beta.23
    Preparing search index...

    Function eq

    • Performs a SameValueZero comparison between two values to determine if they are equivalent.

      Parameters

      • value: unknown
      • other: unknown

      Returns boolean

      1.0.0

      const object = { a: 1 };
      const other = { a: 1 };

      eq(object, object); // => true

      eq(object, other); // => false
      eq('a', 'a'); // => true
      
      eq('a', Object('a')); // => false
      
      eq(NaN, NaN); // => true