Search
❯
September 01, 20241 min read
codesnippetjavascript
const o = { a: 1, b: 'two' } const m = new Map(Object.entries(o))
const m = new Map([ ['a', 1], ['b', 'two'] ]) const o = Object.fromEntries(m)