function getKeys(obj) {
  const res = [];
  let i = 0;
  for (const key in obj) {
    res[i++] = key;
  }
  return res;
}
Returns the keys of the object/map/hash.
@param {?Object} obj The object from which to get the keys.
@return {!Array<string>} Array of property keys.