I'm refactoring an old AngularJS 1.3 project. One of the things I noticed is that the person who made this started every single file of AngularJS code with:
(function () {
'use strict';
angular.module('app').factory('Employees', ['$http', function($http) {
// angular code removed
}]);
})();
Does using function() 'use strict' in every single file any benefit to the code? To me it feels like a waste of 3 lines in every single file. Is there a standard / best practice for this?