LoginSignup
6
1

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