megawac / acorn-umd

Parse acorn ast for AMD, CommonJS, and ES6 definitions.
MIT License
4 stars 1 forks source link

Question: Why assign variables to lodash functions? #3

Closed reggi closed 9 years ago

reggi commented 9 years ago

Early in the library you assign variables to all the lodash function you use in the file. I was wondering what your reasoning was behind this?

reggi commented 9 years ago

At first glance it seems that this allows for using both underscore and lodash, or switching back and forth if necessary. Is that why?

megawac commented 9 years ago

On my phone but thats a file compiled by babel. See the source code in the src/ folder.

Anyway there's no particular reason I do that, I just wanted to use es6 imports

reggi commented 9 years ago

Thanks for the explanation!