Closed yuler closed 5 years ago
Just had to test that this was correct behavior - turns out it is.
function foo(argv = process.argv.slice(2)) { console.log(argv); } foo(); // [] process.argv.push('--bar'); foo(); // ['--bar']
Thanks! :)
😄
Just had to test that this was correct behavior - turns out it is.