Last active
August 29, 2015 14:17
-
-
Save lorenzoongithub/00048de94b21981d4bc5 to your computer and use it in GitHub Desktop.
testing underscore.js
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
// | |
// see: http://underscorejs.org/ | |
// | |
load('http://underscorejs.org/underscore-min.js'); | |
sum = 0; | |
_.each([1, 2, 3],function(i) { sum+=i }); | |
if (sum !== 6) throw ''; | |
sum = 0; | |
_.each({one: 1, two: 2, three: 3},function(i) { sum+=i }); | |
if (sum !== 6) throw ''; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment