As I dive into revamping an older AngularJS 1.3 project, one striking observation is the consistent pattern of starting each AngularJS code file with:
(function () {
'use strict';
angular.module('app').factory('Employees', ['$http', function($http) {
// angular code removed
}]);
})();
I can't help but wonder if using function() 'use strict'
in every file adds any real value to the codebase. Personally, it seems like an unnecessary repetition that takes up precious lines in each file. Is there a recognized standard or best practice regarding this approach?