Potential enhancement to the dd function as well would be a graceful failure (I'm sure someone at some point would be confused as to why w is undefined in a recursive function).
Founder & CTO of Audelabs.
We build attractive, modern websites and mobile apps running on the cloud using the NodeJS and Typescript ecosystem. I also work in the .NET platform with C#, C++ and Rust
Potential enhancement to the dd function as well would be a graceful failure (I'm sure someone at some point would be confused as to why w is undefined in a recursive function).
Really interesting solution though, love it!
You're very right!