UNPKG

zzy-javascript-devtools

Version:

# 该Npm包已更新重构版本! [地址](https://www.npmjs.com/search?q=%40z-utils) 点击后选择其一即可

1 lines 590 B
function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}export default function allEquals(e,o){if(e===o)return!0;if(e instanceof Date&&o instanceof Date)return e.getTime()===o.getTime();if(!e||!o||"object"!==_typeof(e)&&"object"!==_typeof(o))return e===o;if(e.prototype!==o.prototype)return!1;var t=Object.keys(e);return t.length===Object.keys(o).length&&t.every(function(t){return allEquals(e[t],o[t])})}