What do you think of the following?
This code does a bunch of things that aren’t typical. First, all function params are single-lined and left-aligned including the first param. Second, the return token and the closing paren are on their own line. Third, the complex return ternary is split into 4 lines, with left-aligned ? and : cases.
I’m just messing with styling, there are no rules or principles here. Thoughts?
Update: Jessy suggests using combined lets for sequential assignments but I’m not really seeing the appeal here:
More examples in his gist.