Rare Earth Juejin Tech Community
Oct 13, 2022 · Fundamentals
Lazy Evaluation, Thunks, and Generators in JavaScript Functional Programming
This article explores how closures, currying, pure functions, thunks, and ES6 generators enable lazy evaluation in JavaScript, illustrating the concepts with code examples and showing how they can reduce unnecessary computation, control execution order, and even create infinite sequences.
ClosuresCurryingFunctional Programming
0 likes · 11 min read