How to modify composer.js file into the plugin directory

I created one composer.js.es6 file in the initializers directory in composer.js.es6 file i added save method there and i was able to change some functionality of save method which is defined in composer.js file successfully using api.modifyClass function. Thank you very much @david
for your help.