Which tool is able to remove js comma operator expressions reliably? Is there free software available?

// comma operator
return (1,2);

// comma operator removed
return 2;


Transpilation might be error prone! What option is there to do this without switching to a meta language or transpiling?


You can use compilers like CoffeeScript or Elm to do that.

  • 1
    What CoffeeScript command will transform a input.js into a output.js without comma operator? – Semnodime Jul 25 '19 at 12:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.