The variable name is `flattenedLoginIds` in other places in the file.

Also, a bit more concise: `var flattenedLoginIds = _.map(loginIds, _flattenLoginId);`