redeclaration of var _



  • An error "redeclaration of var _" appears in console when I try to

    const _ = require('lodash');

    in simulation. What am I doing wrong? Is simulation API different from the online one or is lodash imported by default on both?



  • I am almost 100% positive that lodash and underscore are already imported by default.



  • Lodash is available per default as _ - Underscore is not available (which also would make no sense, since it's lodash is a superset of underscore).



  • OH, never knew that. Just new it by two different names. I use whichever API documentation makes sense to my nonprogrammer mind when I am trying to figure out what any _. function does.