Skip to content

Commit

Permalink
Updated Underscore.js demos
Browse files Browse the repository at this point in the history
  • Loading branch information
VGGeorgiev committed Dec 1, 2014
1 parent e3f1762 commit a4e65fd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion 6. Underscore.js/1. Collections/1.6. pluck/pluck.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@
var fnames = _.pluck(people, 'fname');
console.log('---Firstnames: ');
console.log(fnames);

}());
1 change: 1 addition & 0 deletions 6. Underscore.js/3. Functions/3.1. momoize/memoize.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
console.log("fib[" + n + "]= " + fibN);
return fibN;
});

fib(200);
}());
2 changes: 2 additions & 0 deletions 6. Underscore.js/3. Functions/3.2. compose/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
return p + " third";
}

var nestedAll = third(second(first("zero")));
var all = _.compose(third, second, first);

console.log(nestedAll);
console.log(all("zero"));
}());
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@

console.log('---Inverted: ');
console.log(_.invert(person));

}());

0 comments on commit a4e65fd

Please sign in to comment.