function isObjectOfUnknownValues(val) {
  return typeof val === 'object' && val !== null && !Array.isArray(val);
}
Type predicate verifying `val` is an object (excluding `Array` and `null`).
@param {unknown} val
@return {val is Record<string, unknown>}