SyntaxFix
Write A Post
Hire A Developer
Questions
You can follow this, more readable, not expectation raise due to key not found :
data.map((datum)=>{ return { 'id':datum.id, 'title':datum.login, }