mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
68 lines
1.1 KiB
JavaScript
68 lines
1.1 KiB
JavaScript
fooBar.doSomething('Hello World').doAnotherThing('Foo', { foo: bar })
|
|
|
|
// App configuration.
|
|
.doOneMoreThing(config)
|
|
|
|
.run(() => console.log('Bar'));
|
|
|
|
bigDeal
|
|
|
|
.doSomething('Hello World')
|
|
|
|
// Hello world
|
|
.doAnotherThing('Foo', { foo: bar })
|
|
|
|
// App configuration.
|
|
.doOneMoreThing(config)
|
|
|
|
.run(() => console.log('Bar'));
|
|
|
|
|
|
foo.bar.baz
|
|
|
|
.doSomething('Hello World')
|
|
|
|
// Hello world
|
|
.foo.bar.doAnotherThing('Foo', { foo: bar })
|
|
|
|
.doOneMoreThing(config)
|
|
.bar.run(() => console.log('Bar'));
|
|
|
|
(
|
|
somethingGood ? thisIsIt : maybeNot
|
|
)
|
|
|
|
// Hello world
|
|
.doSomething('Hello World')
|
|
|
|
.doAnotherThing('Foo', { foo: bar }) // Run this
|
|
.run(() => console.log('Bar')); // Do this
|
|
|
|
helloWorld
|
|
|
|
.text()
|
|
|
|
.then(t => t);
|
|
|
|
(veryLongVeryLongVeryLong ||
|
|
anotherVeryLongVeryLongVeryLong ||
|
|
veryVeryVeryLongError
|
|
)
|
|
|
|
.map(tickets => TicketRecord.createFromSomeLongString())
|
|
|
|
.filter(obj => !!obj);
|
|
|
|
const sel = this.connections
|
|
|
|
.concat(this.activities.concat(this.operators))
|
|
.filter(x => x.selected);
|
|
|
|
Object.entries(obj)
|
|
|
|
.forEach((e) => console.log(e));
|
|
|
|
this.fetch("/foo")
|
|
|
|
.then(response => response.json());
|