Skip to content

Instantly share code, notes, and snippets.

@theRemix
Created May 6, 2014 01:50
Show Gist options
  • Save theRemix/6b3a36b168f2fab5969d to your computer and use it in GitHub Desktop.
Save theRemix/6b3a36b168f2fab5969d to your computer and use it in GitHub Desktop.
which is better?
// 1
for (var p in parameters){
if(p.indexOf(SIGNATURE_KEYNAME) === 0){
delete parameters[p];
}
}
// 2
parameters.forEach(function(p, i){
if(p.indexOf(SIGNATURE_KEYNAME) === 0){
delete parameters[p];
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment