Reputation: 22064
I'm new to nodejs, the only way that I can come up with is :
var a = require ('./undercore-min')
and make use of underscore object
a([1,2,3]).each(function(a){console.log a})
but I'd love to use the elegant '_' syntax,
_([1,2,3]).each()
how to do that, and how to make underscore globally?
Upvotes: 1
Views: 405