Skip to content

Instantly share code, notes, and snippets.

View nuragic's full-sized avatar
🤘

Andrea Puddu nuragic

🤘
View GitHub Profile
@nuragic
nuragic / _.extract.js
Created October 31, 2012 15:24
underscore.js _.extract()
/**
* Creates as many variables as object properties in the specified context.
*
* _.extract({name: "Andrea", address: "Madrid", age: "27"}, window);
* console.log(name)
* => 'Andrea'
*/
_.mixin({