SyntaxFix
Write A Post
Hire A Developer
Questions
With ES6 you can do it very short:
options.filter(opt => !opt.assigned).map(opt => someNewObject)