Skip to content

Instantly share code, notes, and snippets.

@turbobabr
Created April 21, 2014 05:56
Show Gist options
  • Save turbobabr/11133505 to your computer and use it in GitHub Desktop.
Save turbobabr/11133505 to your computer and use it in GitHub Desktop.
Setting defaults using underscore
function(options) {
options = _.defaults(options || {}, {
index: 0,
product: "sponge"
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment