Object.fromEntries(Object.entries(obj).map(([key, value]) => [key, mapValue(value)])) sure is a pattern
@Lady wait what
@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
A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.
@Lady what is that doing