6
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Object.entries()の逆変換

Last updated at Posted at 2017-09-29

ない!

調べてワンライナーで書いた

> [['a','b'],['c','d']].reduce(function(result, arr){result[arr[0]]=arr[1]; return result;},{})
> {a: "b", c: "d"}

結論

微妙。。。。

コメントで天才たちが勝手に改良してるのでコメント欄推奨

感謝しかない

6
1
8

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?