Created
May 6, 2014 01:50
-
-
Save theRemix/6b3a36b168f2fab5969d to your computer and use it in GitHub Desktop.
which is better?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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