"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const _ = require("lodash");
/**
 * Thanks to authors of https://github.com/wesleytodd/setprototypeof/blob/master/index.js
 * Unfortunetely due to unsupported export type it could not be longer used as a dependency. Sorry.
 */
exports.setPrototypeOf = _.get(Object, "setPrototypeOf") || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties);
function setProtoOf(obj, proto) {
    obj.__proto__ = proto;
    return obj;
}
function mixinProperties(obj, proto) {
    for (const prop in proto) {
        if (!obj.hasOwnProperty(prop)) {
            obj[prop] = proto[prop];
        }
    }
    return obj;
}
//# sourceMappingURL=setprototypeof.js.map