Skip to content

Commit

Permalink
Merge pull request #1 from VianneyLhz/master
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Quentin Rossetti committed Oct 1, 2014
2 parents cc1aa23 + 9a6defd commit 383bc9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ object. To do so return the new value that you want for your item.
var collection = { one: { nestOne: 42 }, two: 'item', three: [ true, false ] };
var my = new Rrr(collection)
my.map(function (value, key) {
if (typeof val === 'number') {
val++;
return val;
if (typeof value === 'number') {
value++;
return value;
} else {
return val;
return value;
}
});
console.log(my)
Expand Down

0 comments on commit 383bc9d

Please sign in to comment.