3 ms·
We’ve got to write argument names twice when we do it in typescript though: function foo({ bar }: { bar: string }) { Still a great pattern, but I’d probably
by genuine_smiles 6y ago
We’ve got to write argument names twice when we do it in typescript though:
function foo({ bar }: { bar: string }) {
Still a great pattern, but I’d probably use it a lot more if I only had to write the variable names once.