HA!

I know use objects as arguments forever in #TypeScript to functions, because
this is always annoying:

const f1 = (arg1: string, arg2: boolean) => { // validate args, but must use
new name const _arg1 = v1(arg1); const _arg2 = v2(arg2); }

but this is cool:

Thu, 21 Mar 2019 21:39:16 UTC

3 replies

Replying to @coderbyheart
Replying to @coderbyheart

Bonus: when using many scalars in arguments it can be easy to mix them up.

const f1 = (file: string, folder: string) => { } f1('/tmp', 'foo.txt'); //
spot the error?

Replying to @coderbyheart