SyntaxFix
Write A Post
Hire A Developer
Questions
You could use flatMap. It can filter and map in one.
$scope.appIds = $scope.applicationsHere.flatMap(obj => obj.selected ? obj.id : [])