For functions and methods, including anonymous lambda functions, I keep the opening brace on the next line by itself. For objects and everything I put the opening brace on the line with the declaration.
Will 'favoriteThings' even compile with that final comma?
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.