No operations function in AngularJS

Angular noop function performs no operations. It is an empty function.

Example: 
  1. function TestCode(callback)  
  2. {  
  3.     callback();  
  4. }  
  5. TestCode(angular.noop);  
This is same as: 
  1. TestCode(function() {});