"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getWithDefault = getWithDefault;
const get_prop_1 = require("./get-prop");
/**
 * Gets the value of a property from an object with a
 * default if that prop is undefined
 * @param obj
 * @param prop
 * @param def
 */
function getWithDefault(obj, prop, def) {
    const res = (0, get_prop_1.getProp)(obj, prop);
    return res !== undefined ? res : def;
}
//# sourceMappingURL=get-with-default.js.map