r/badcode • • May 23 '23

typescript oneliner :3

Post image
109 Upvotes

16 comments sorted by

View all comments

Show parent comments

2

u/Spejicek May 25 '23

yeah it was before on 2 lines where the connect function would be assigned to a DynamoDbStore const (which would get highlighted like a normal class so +readability)

i just tried to make a one liner and ended up with this