prettier/tests/method-chain/computed-merge.js

13 lines
247 B
JavaScript
Raw Normal View History

[].forEach(key => {
data[key]('foo')
.then(() => console.log('bar'))
.catch(() => console.log('baz'));
});
[].forEach(key => {
data('foo')
[key]('bar')
.then(() => console.log('bar'))
.catch(() => console.log('baz'));
});