4 ms·
Not if you consider that the linked repo requires you to use asPipe on all functions first. So it's this: const greeting = thrush( 'hello', s => s.to
by flexagoon 1y ago
Not if you consider that the linked repo requires you to use asPipe on all functions first. So it's this:
const greeting = thrush(
'hello',
s => s.toUpperCase(),
s => s + '!!!'
);
Vs this:
const upper = asPipe(s => s.toUpperCase())
const ex = asPipe((s) => s + '!!!')
const greeting = pipe('hello')
| upper
| ex
await greeting.run()
(And that doesn't work in reality, as the top comment here notes)