1×
Become a member
to unlock all features
Autoplay

    Eliminate Anonymous JavaScript Functions with Pointfree Programming

    javascriptJavaScript

    This lesson teaches you what pointfree programming is, passing a named function as an argument to avoid writing an anonymous function with interim variables instead. Pointfree programming increases code legibility, decreases the surface area for bugs, and makes our code more composable and unit testable. We will demonstrate this by removing the anonymous arrow function passed as a callback to a map method with a named function.