"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const f_1 = require("../../object/Keys/f");
function isEqual(a, b) {
    const ta = typeof a;
    const tb = typeof b;
    if (ta !== tb) {
        return false;
    }
    if (ta === 'string' ||
        ta === 'number' ||
        ta === 'boolean' ||
        ta === 'symbol' ||
        ta === 'undefined' ||
        ta === 'function') {
        return a === b;
    }
    if (ta === 'object') {
        if (a === b) {
            return true;
        }
        const la = (0, f_1.keys)(a).length;
        const lb = (0, f_1.keys)(b).length;
        if (la !== lb) {
            return false;
        }
        for (const ka in a) {
            const va = a[ka];
            const vb = b[ka];
            if (!isEqual(va, vb)) {
                return false;
            }
        }
    }
    return true;
}
exports.default = isEqual;
//# sourceMappingURL=f.js.map