Skip to content

Instantly share code, notes, and snippets.

@kitcat-dev
Created July 23, 2021 08:40
Show Gist options
  • Save kitcat-dev/11bcdc914b36ceb1da7ddbaad1d0e250 to your computer and use it in GitHub Desktop.
Save kitcat-dev/11bcdc914b36ceb1da7ddbaad1d0e250 to your computer and use it in GitHub Desktop.
Object.mapEntries = (obj, callbackFn) =>
Object.fromEntries(
Object.entries(obj).map(callbackFn)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment