Skip to content

Instantly share code, notes, and snippets.

@lorenzoongithub
Last active August 29, 2015 14:17
Show Gist options
  • Save lorenzoongithub/00048de94b21981d4bc5 to your computer and use it in GitHub Desktop.
Save lorenzoongithub/00048de94b21981d4bc5 to your computer and use it in GitHub Desktop.
testing underscore.js
//
// 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