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.

Revisions

  1. kitcat-dev created this gist Jul 23, 2021.
    4 changes: 4 additions & 0 deletions mapEntries.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    Object.mapEntries = (obj, callbackFn) =>
    Object.fromEntries(
    Object.entries(obj).map(callbackFn)
    )