badger/frontend — comment on commit 81ae6e0d307598dcd96978fa422a4e3476a322f0
File: javascripts/linked_accounts/linked_accounts.js line 101
By PaulMakepeace:

Can we just use an if statement?

if (accounts)
accounts.map...

is more readable and faster.

I'm not up on JavaScript so much these days but is there not a workable for(account in accounts) type of syntax? It's not semantically a map here (since the returned values are thrown away)