Quartz 5

Home

❯

Org-roam

❯

Object.fromEntries

Object.fromEntries

Nov 16, 20201 min read

Given an JavaScript Iterables over [key,value] pairs, Object.fromEntries() creates an object. It does the opposite of Object.entries. See the proposal1 for more information.

Syntax

console.log(
  Object.fromEntries([
    ["foo", 1],
    ["bar", 2],
  ])
); // { foo: 1, bar: 2 }

Footnotes

Footnotes

  1. https://github.com/tc39/proposal-object-from-entries ↩


Graph View

  • Given an JavaScript Iterables over [key,value] pairs, Object.fromEntries() creates an object. It does the opposite of Object.entries. See the proposal for more information.
  • Syntax
  • Footnotes

Created with Quartz v5.0.0 © 2026

  • GitHub
  • Discord Community