UNPKG

@hayspec/spec

Version:

Core logic for Hayspec framework.

29 lines 745 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function deepEqual(x, y) { if (x === y) { return true; } else if ((typeof x == "object" && x != null) && (typeof y == "object" && y != null)) { if (Object.keys(x).length != Object.keys(y).length) { return false; } for (var prop in x) { if (y.hasOwnProperty(prop)) { if (!deepEqual(x[prop], y[prop])) { return false; } } else { return false; } } return true; } else { return false; } } exports.default = deepEqual; //# sourceMappingURL=deep-equal.js.map