Map: Another Higher Order Function tiff on September 17, 2017 This was originally published on my blog. Map is another higher order function that goes through an array and doesn’t discard it but instead trans... Read full post Submit Preview Dismiss Collapse Expand Ben Halpern Ben Halpern Ben Halpern Follow A Canadian software developer who thinks he’s funny. Location NY Education Mount Allison University Pronouns He/him Work Co-founder of DEV Joined Dec 27, 2015 • Sep 17 '17 Dropdown menu Copy link Hide Another great post, Tiffany. Collapse Expand tiff tiff tiff Follow Software engineer doing my own thing. Forcibly retired techie. Just doing DevOps, System Design, and DIY electronics for fun Location USA Education Self-taught Pronouns it/its, she/they Work Retired Joined Oct 14, 2016 • Sep 19 '17 Dropdown menu Copy link Hide Thanks Ben! Collapse Expand Stefan Dorresteijn Stefan Dorresteijn Stefan Dorresteijn Follow I'm a lightly bearded author, software architect, startup CTO and gamer. I'm the CTO of Refrag.gg Location The Hague, Netherlands Education Self-Taught Pronouns He/Him Work CTO @ Refrag.gg Joined Jul 27, 2017 • Sep 18 '17 Dropdown menu Copy link Hide I'm pretty sure the map function is what I use most in any language. If you're working with data (especially from REST apis), you do so much data transforming that you really can't live without a map function. Great post! Collapse Expand jonathon jonathon jonathon Follow Joined Aug 19, 2017 • Sep 18 '17 Dropdown menu Copy link Hide If you find yourself using .map().filter or .filter().map() a lot then invest some time learning .reduce() Collapse Expand tiff tiff tiff Follow Software engineer doing my own thing. Forcibly retired techie. Just doing DevOps, System Design, and DIY electronics for fun Location USA Education Self-taught Pronouns it/its, she/they Work Retired Joined Oct 14, 2016 • Sep 18 '17 Dropdown menu Copy link Hide Definitely. I was just posting each function in different posts. This is my next one! Collapse Expand João Bueno João Bueno João Bueno Follow Work Senior Software Engineer at Pinterest (Baires Dev) Joined Sep 13, 2017 • Sep 18 '17 • Edited on Sep 18 • Edited Dropdown menu Copy link Hide Great post Tiffany! In ES6, I really like to do stuff like this: const names = animals.map(({name, species}) => `${name} is a ${species}`); Enter fullscreen mode Exit fullscreen mode Keep up the great work! Collapse Expand tiff tiff tiff Follow Software engineer doing my own thing. Forcibly retired techie. Just doing DevOps, System Design, and DIY electronics for fun Location USA Education Self-taught Pronouns it/its, she/they Work Retired Joined Oct 14, 2016 • Sep 18 '17 Dropdown menu Copy link Hide Template literals are the sh*t! Yeah. I should have done that but didn't think to use it there. Thanks for the suggestion! Collapse Expand Saurabh Sharma Saurabh Sharma Saurabh Sharma Follow Fullstack Web developer. Location Delhi, India Work Fullstack Web Developer at Codeword Tech Joined Nov 13, 2017 • Nov 27 '17 Dropdown menu Copy link Hide here is a good video on using map Map - Part 2 of Functional Programming in JavaScript One for filter too Filter Collapse Expand Steven Washington Steven Washington Steven Washington Follow Full stack web dev with a lot of experience in JS and PHP, constantly sniffing around to get more broad with skills and languages. Email washington.steven@gmail.com Location Boston, MA Education BS Technical Game Development (Worcester Polytechnic Institute) Work Software Architect at Connelly Partners Joined Jun 21, 2017 • Sep 18 '17 Dropdown menu Copy link Hide Thanks for the run down! I feel like my array game is supercharged after learning about these array functions. Collapse Expand tiff tiff tiff Follow Software engineer doing my own thing. Forcibly retired techie. Just doing DevOps, System Design, and DIY electronics for fun Location USA Education Self-taught Pronouns it/its, she/they Work Retired Joined Oct 14, 2016 • Sep 19 '17 Dropdown menu Copy link Hide Yeah mine too. Working on refactoring a project and see many, many places I could use these functions. Collapse Expand Angel Diaz Angel Diaz Angel Diaz Follow New in JS, Oracle, Html and IT. Love Code and to learn new stuff. Joined Jun 7, 2017 • Sep 17 '17 Dropdown menu Copy link Hide Thanks Tiffany. Useful. Code of Conduct • Report abuse
Another great post, Tiffany.
Thanks Ben!
I'm pretty sure the map function is what I use most in any language. If you're working with data (especially from REST apis), you do so much data transforming that you really can't live without a map function.
Great post!
If you find yourself using
.map().filteror.filter().map()a lot then invest some time learning.reduce()Definitely. I was just posting each function in different posts. This is my next one!
Great post Tiffany!
In ES6, I really like to do stuff like this:
Keep up the great work!
Template literals are the sh*t! Yeah. I should have done that but didn't think to use it there. Thanks for the suggestion!
here is a good video on using map Map - Part 2 of Functional Programming in JavaScript
One for filter too Filter
Thanks for the run down! I feel like my array game is supercharged after learning about these array functions.
Yeah mine too. Working on refactoring a project and see many, many places I could use these functions.
Thanks Tiffany. Useful.