Skip to content

Instantly share code, notes, and snippets.

@jasonkuhrt
Created March 27, 2011 02:59
Show Gist options
  • Save jasonkuhrt/888872 to your computer and use it in GitHub Desktop.
Save jasonkuhrt/888872 to your computer and use it in GitHub Desktop.
desired loop
var param, args, __results, _i, _ref, _len;
__results = [];
for (_i = 0, _len = (_ref = params).length; _i < _len; ++_i) {
param = _ref[_i];
if (param in kwargs){
__results.push(kwargs[param]);
}
}
args = __results;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment