function isEmpty(obj) {
  for (const key in obj) {
    return false;
  }
  return true;
}
Whether the object/map/hash is empty.
@param {?Object} obj The object to test.
@return {boolean} true if obj is empty.