UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

14 lines 345 B
/** * * @param {Object} a * @param {Object} b * @returns {boolean} */ export function objectsEqual(a, b) { return a === b || ( typeof a === "object" //guard against null and undefined values && typeof a.equals === "function" // check for equals method && a.equals(b) ); }