function getProp(obj, prop) {
    if (!prop) {
        return obj;
    }
    var result = obj;
    var propArray = prop.split('.');
    propArray.forEach(function (item) {
        if (result) {
            result = result[item];
        }
    });
    return result;
}

export { getProp };
//# sourceMappingURL=index.esm.js.map
