export const getProps = (propList, ctx) => {
    // set context
    if (!ctx)
        ctx = this;
    const propObj = {};
    propList.forEach(prop => {
        if (ctx[prop] !== undefined) {
            propObj[prop] = ctx[prop];
        }
    });
    return propObj;
};
