|
|
|
|
|
by w0rd-driven
2884 days ago
|
|
It's hard to gauge its looks as unfamiliar with TS as I am but would the equivalent without the spread operator look any better? I call code like this 'clever' as it uses the language constructs to get usually a very optimal end result at the behest of being harder for n00bs like myself to parse. I do wonder what a prettier version of this would look like. It certainly wouldn't be this concise but would it be better or harder to follow? I'm okay with something like this if it solves a very specific problem I hardly see. If my entire code base is littered with this? No thanks. Yea eventually it'd be second nature but I'd rather it be more verbose and slightly easier to unpack than this tightly packed. |
|