Skip to content

Instantly share code, notes, and snippets.

@woeye
Created June 25, 2012 14:42
Show Gist options
  • Save woeye/2989064 to your computer and use it in GitHub Desktop.
Save woeye/2989064 to your computer and use it in GitHub Desktop.
Using underscore in node.js
var _ = require('underscore');
var a = {
foo: 'foo'
};
var b = {
moo: 'moo'
};
var c = _.extend(a,b);
console.log(c);
@woeye
Copy link
Author

woeye commented Jun 25, 2012

You have to do a "npm install underscore" before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment