"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getProps = getProps;
const get_prop_1 = require("./get-prop");
/**
 * Given an array of prop paths, return all the values that exist, in an array
 */
function getProps(obj, props) {
    return props.reduce((a, p) => {
        const v = (0, get_prop_1.getProp)(obj, p);
        if (v) {
            a.push(v);
        }
        return a;
    }, []);
}
//# sourceMappingURL=get-props.js.map