News for hackers. Stuff that matters.
Re:Deno Joins TC39 by wiredearp on Monday December 13, 2021 @09:30AM (#29539879)
new Map([[k1,v1], [k2, v2]]) can do that. Or Object.fromEntries with the same argument.
Re:Deno Joins TC39 by tarjei_huse on Monday December 13, 2021 @09:42AM (#29539980)
Thanks!

You still need to create the middle datastructure ( [[k1,v1], [k2, v2]] ) but it is an improvement :)

Re:Deno Joins TC39 by wiredearp on Monday December 13, 2021 @10:03AM (#29540179)
Ah yes, true, you always need to map the things ID to the thing itself, so that middle data structure is actually quite annoying :)