Removing comment lines from all enqueued js files using a filter function

Is there a way to filter all enqueued javascript files and remove all comment lines without using a plugin ?