function getProperties(obj, keys) {
  const props = {};
  const { length } = keys;
  let i = 0;
  let key;

  for (i = 0; i < length; i += 1) {
    key = keys[i];
    props[key] = obj[key];
  }

  return props;
}
Get object's properties
@param {Object} obj - object
@param {Array} keys - keys
@returns {Object} properties object