Execute a function after a map function
As soon as $scope.items
is an array as you stated in the question and the Array.prototype.map()
is synchronous - which means that you simply put the next statement after this code and it will be executed after the .map()
has completed processing.