Friday, August 28, 2015

Difference between Map and Filter

Notes

  • You can prettify your JSON output by passing null and the number of spaces to indent.
  • Another useful high order function you can use is reduce which combines the elements of an array to a single value.
  • The logic that each function (map, filter reduce) calls to manipulate the original array of data is called a closure. Note that there is no formal function declaration and no function name for a closure.


This work is licensed under the Creative Commons Attribution 3.0 Unported License.

4 comments:

  1. it’s really a great and useful piece of info. I’m happy that you shared this helpful info with us
    https://tripinvest.com/spain/houses-villas-for-sale

    ReplyDelete
  2. Thanks for sharing. We offer Social Media Marketing Services in Dubai at the best price. This is the most effective approach to reaching millions of potential customers.

    ReplyDelete
  3. Mirik is a small town, but the place has many tourist attractions that you can explore. It is well connected to Ranchi by road and rail. The place is a good base for exploring nearby places. The climate is pleasant throughout the year. So, are you excited to visit this town? Then check out our blog about the famous Mirik tourist spot here.

    ReplyDelete