Array destructuring
Array destructuring is a feature in JavaScript that allows you to extract values from arrays and assign them to variables in a more concise and readable way.
#!/usr/bin/node
const [arg] = process.argv.slice(2);
if (arg) {
console.log(arg);
} else...
snowcodes.hashnode.dev2 min read