How do I use/reference lodash in the javascript node?

I see it is made available with moment and fetch (Javascript node - which APIs are exposed? - #2 by Cecilia) but not sure how to add it to code. For example, I’d like to use _.cloneDeep(varA) where _ is the variable holding the reference to lodash

1 Like

Maybe the referenced post was incorrect


For instance:

VM408:14 First element: sky
VM408:15 Last element: universe

this works as well:

var objects = [{ ‘a’: 1 }, { ‘b’: 2 }];

var deep = _.cloneDeep(objects);
console.log(deep[0] === objects[0]);