@dilitrust
Iterator helpers, a stage3 TC39 proposal that brings lazy sequences to JS, is already implemented by V8 (Chrome & #Nodejs 22+)
Below an example with square integers showing how it helps reduce computations.
IMHO this is pure gold!
Iterator helpers, a stage3 TC39 proposal that brings lazy sequences to JS, is already implemented by V8 (Chrome & #Nodejs 22+)
Below an example with square integers showing how it helps reduce computations.
IMHO this is pure gold!
Thanks to their JavaScript engine, Apple JavaScriptCore, they both benefit from Tail Call Optimization (TCO) 🙌
Thanks to their JavaScript engine, Apple JavaScriptCore, they both benefit from Tail Call Optimization (TCO) 🙌
Lot of fun with conditional types 😀
Give it a try with this sandbox codesandbox.io/s/nervous-ra...
Lot of fun with conditional types 😀
Give it a try with this sandbox codesandbox.io/s/nervous-ra...