"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const f_1 = __importDefault(require("../../system/f/comparison/Equals/f"));
const assert_1 = require("../../util/assert");
const clone_1 = require("../../util/clone");
const object_1 = require("../../util/object");
const obj = { a: 1, b: { c: 2 } };
const cloned_obj = (0, clone_1.clone)(obj);
delete cloned_obj['b']['c'];
delete cloned_obj['b'];
(0, assert_1.assert)((0, f_1.default)(cloned_obj, { a: 1 }));
(0, assert_1.assert)((0, f_1.default)(obj, { a: 1, b: { c: 2 } }));
const obj2 = { a: 1, b: { c: 2 } };
(0, object_1.deepDestroy)(obj2, ['b', 'c']);
(0, assert_1.assert)((0, f_1.default)(obj2, { a: 1 }));
assert_1.assert.deepEqual((0, object_1.deepGet)({}, []), {});
assert_1.assert.deepEqual((0, object_1.deepGet)({ a: 1, b: 2 }, []), { a: 1, b: 2 });
assert_1.assert.deepEqual((0, object_1.deepGet)({ a: 1, b: 2 }, ['a']), 1);
assert_1.assert.deepEqual((0, object_1.deepGet)({ a: { aa: 1 }, b: 2 }, ['a', 'aa']), 1);
//# sourceMappingURL=object.js.map