短评 · ·

X 归档 2018-03-12

1 条动态 · 图 1 · 视频 0
🔥 New ECMAScript proposal to add Object.fromEntries, complementing Object.entries: https://github.com/bakkot/object-from-entries

Object.fromEntries(Object.entries(object)) ≈ object

It’s similar to _.fromPairs in Lodash.
🔥 新的 ECMAScript 提案:添加 Object.fromEntries,与 Object.entries 互补:

Object.fromEntries(Object.entries(object)) ≈ object

它类似于 Lodash 里的 _.fromPairs。
@mathias 的配图 1/1