Let’s take the following example: 1 2 3 4 5 6 7 var arr = [1,2,3,4]; arr.forEach(function(val){ if(val===2){ return false; } console.log(val); });var arr = [1,2,3,4]; arr.forEach(function(val){ if(val===2){ return false; } console.log(val); }); You would expect it to just print 1, instead it prints 1,3,4. You might yell WTH, but thats how the forEach method […]

Read More →

A typical day of a javascript developer has some sort of Array operation that needs to be done. The choicest way of doing this is to loop through it, however ECMASCRIPT5 has a lot of convenience methods for almost all of the needs. Some of these methods have existed in the previous versions as well. […]

Read More →

National Geographic presents 2014’s Ultimate Adventure Bucket List. Twenty of the world’s top adventurers share the dazzling new frontiers they’ve discovered, as well as their all-time classic trips to add to your list. Also, don’t miss the must-have gear they take on every trip. “Our greatest human adventure is the evolution of consciousness. We are […]

Read More →