Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
Loop referenced items when looping over key array
  • Loading branch information
tanepiper committed Apr 11, 2014
1 parent c3ddb13 commit 4cc496e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Expand Up @@ -95,7 +95,7 @@ var keys = ['foo', 'bar'];
var values = [23, 42];

var object = {};
while (items.length) {
while (keys.length) {
var key = keys.pop();
object[key] = values.pop();
}
Expand All @@ -109,7 +109,7 @@ var keys = ['foo', 'bar'],
object = {},
key;

while (items.length) {
while (keys.length) {
key = keys.pop();
object[key] = values.pop();
}
Expand Down

0 comments on commit 4cc496e

Please sign in to comment.