For the same reason almost all my functions end with this:
const result = ... ;
return result;
I know debuggers can show return values, but that doesn't help when you're just doing a quick console log inspection.For the same reason almost all my functions end with this:
const result = ... ;
return result;
I know debuggers can show return values, but that doesn't help when you're just doing a quick console log inspection.