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

Hello,

For instance:

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

PS.

https://lodash.com/docs/4.17.15#cloneDeep
this works as well:

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

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