Object.fromEntries(Object.entries(obj).map(([key, value]) => [key, mapValue(value)])) sure is a pattern
@aescling what
@Lady what is that doing
@aescling returns a new object with the same enumerable, string‐typed keys as obj, but with the values mapped according to the function mapValue
@Lady nice
@Lady wait what