Skip to content

Instantly share code, notes, and snippets.

@sintaxi
Last active November 14, 2016 21:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sintaxi/bd7a860eb510695e1cd3b17fa805ea30 to your computer and use it in GitHub Desktop.
Save sintaxi/bd7a860eb510695e1cd3b17fa805ea30 to your computer and use it in GitHub Desktop.
🐒🐒🐒 All the way down.
var 🐒 = function(mstr){
if (!mstr) mstr = {}
return function(config){
for (var attr in config) { mstr[attr] = config[attr] }
var obj = scope(mstr)
obj.exec = function(){
// awesome things here
}
return obj
}
}
module.exports = 🐒()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment