In AngularJS parsers are used to sanitize / convert the $viewValue. $parsers are array of functions to execute, as a pipeline, whenever the control reads value from the DOM. The functions are called in array order, each passing its return value through to the next. The last return value is forwarded to the $validators collection. […]

Read More →

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 →

Semantic versioning is a standard that a lot of projects use to communicate what kinds of changes are in this release. It’s important to communicate what kinds of changes are in a release because sometimes those changes will break the code that depends on the package. npmjs has a cool semver calculator for all the […]

Read More →