paint-brush
Functional Programming in Javascript for Busy Peopleby@austin
134 reads

Functional Programming in Javascript for Busy People

by Austin Pocus2mJanuary 17th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

You've probably used map, reduce, and other functional methods in Javascript before, but there are a few use cases you probably haven’t thought about much or used before. In this post, I’d like to go over these methods (and a few other surprises!) to show what’s possible in Javascript. The Hacker Noon codebase makes heavy use of map, filter, and reduce. In a simple example, we get the word count from both 2.0 and archived (1.0) stories, then sum the resulting array using reduce.

Company Mentioned

Mention Thumbnail
featured image - Functional Programming in Javascript for Busy People
Austin Pocus HackerNoon profile picture
Austin Pocus

Austin Pocus

@austin

Do not attempt to adjust your set. We are controlling transmission.

About @austin
LEARN MORE ABOUT @AUSTIN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Austin Pocus HackerNoon profile picture
Austin Pocus@austin
Do not attempt to adjust your set. We are controlling transmission.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite