Closed lpatiny closed 7 years ago
I'll try to fix those old thing everywhere. By now I've fixed it in the code you hint
You could make a query by regular expressions in order to find all the '= function'
I did. But, what if I directly export the function?
module.exports.myFunction = function (var1, opts)
Did you say something about to create a named function and export it after?
@targos @lpatiny
say something about to create a named function and export it after?
That's what I usually do but you can also write module.exports.myFunction = function myfunction(){}
https://github.com/cheminfo-js/spectra-data/blob/e92167314d912e1ddd57169fb2d3f9d9b5110ff5/src/jcampEncoder/VectorEncoder.js#L66