In JavaScript, I export on the same line as the declaration
In JavaScript, I export on the same line as the declaration.
This avoids having to repeat the function's name in two spots.
And I can see the function is exported while reading the function itself. I don't need to check elsewhere.
