function extract(obj) {
  return Object.keys(obj).reduce((res, key) => {
    if (isVar(key)) {
      res = res || {};
      res[key] = obj[key];
    }
    return res;
  }, null);
}
Extract variables from mixed object
@param {Object} obj
@returns {null|Object}