@datenreisender On individual args you can
use
args.arg1 || defaultValue;
Using destructuring assignment this will even be nicer:
argsWithDefaults = { ...defaults, ...args }
A static archive of Markus Tacker's tweets. Follow me on Mastodon: @[email protected].
@datenreisender On individual args you can
use
args.arg1 || defaultValue;
Using destructuring assignment this will even be nicer:
argsWithDefaults = { ...defaults, ...args }