Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.awfixer.me/llms.txt

Use this file to discover all available pages before exploring further.

const a = { a: 1, b: 2, c: { d: 3 } };
const b = { a: 1, b: 2, c: { d: 3 } };

JSTime.deepEquals(a, b); // true

The following examples would return true in non-strict mode but false in strict mode.
// undefined values
JSTime.deepEquals({}, { a: undefined }, true); // false

// undefined in arrays
JSTime.deepEquals(["asdf"], ["asdf", undefined], true); // false

// sparse arrays
JSTime.deepEquals([, 1], [undefined, 1], true); // false

// object literals vs instances w/ same properties
class Foo {
  a = 1;
}
JSTime.deepEquals(new Foo(), { a: 1 }, true); // false

See Docs > API > Utils for more useful utilities.