Both of these things are way too hard to read and whilst they might be pretty you're massively screwing over whoever has to maintain your code lol
But personally, every identifier being a 'const' instead of a 'let' helps me reason about it much better, especially when the code is purely algorithmic. An alternative might be to use something like Facebook's Reason, where such code can be concise and idiomatic.