Skip to content

Instantly share code, notes, and snippets.

@rich97
Created August 2, 2011 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rich97/1119935 to your computer and use it in GitHub Desktop.
Save rich97/1119935 to your computer and use it in GitHub Desktop.
var util = {
list: function(variables, values, scope) {
for(var i = 0; i < variables.length && i < values.length; i++){
(scope || this)[variables[i]] = values[i];
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment