var getProps = function (propList, ctx) {
    // set context
    if (!ctx)
        ctx = undefined;
    var propObj = {};
    propList.forEach(function (prop) {
        if (ctx[prop] !== undefined) {
            propObj[prop] = ctx[prop];
        }
    });
    return propObj;
};
export { getProps as g };
