feat(indent): ecma - support common use-cases

This commit is contained in:
Munif Tanjim 2022-01-21 18:44:30 +06:00 committed by Christian Clason
parent 782e299cd6
commit 7a6d93ca5b
8 changed files with 149 additions and 20 deletions

View file

@ -0,0 +1,6 @@
const itemById = Array.from(
new Set()
).reduce((byId, item) => {
byId[item.id] = item
return result;
}, {})