Skip to content

Conversation

bpierre
Copy link

@bpierre bpierre commented Feb 21, 2014

It would allow to do this:

function foo (options) { options = utils.extend({ a: 1 // default option }, options) }

Instead of this:

function foo (optionsExt) { var options = { a: 1 // default option } utils.extend(options, optionsExt) }
@bpierre bpierre closed this Feb 21, 2014
@bpierre bpierre deleted the extend-return branch February 21, 2014 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant