Skip to main content

Harshal V. LADHE

Functional Programming in JavaScript

Functional techniques in JavaScript — pure functions, closures, and composition — for writing predictable, testable code.

Content tagged functional-programming

  • Snippet:Encapsulation with Closures

    Encapsulate private variables using JavaScript closure patterns.
    Master the functional approach to data encapsulation in JavaScript by leveraging lexical scoping to create immutable private variables.
    Published at:
    Categories:JavaScript
    Estimated reading time:3 min read
  • Tutorial:Iterator Helpers: Lazy Pipelines over Any Iterator

    Map, filter and take over any iterator, lazily.
    Use ES2025 iterator helpers (map, filter, take, drop, flatMap, reduce, Iterator.from) to build lazy pipelines over generators, Sets, Maps and infinite sequences.
    Published at:
    Categories:JavaScript
    Estimated reading time:10 min read