JavaScript needs more helper functions for iteration (map, filter, etc.) – where should we put them?

Iteration is a standard that connects operations with data containers: Each operation that follows this standard, can be applied to each data container that implements this standard.
In this blog post:

We first explore three questions:

How does JavaS…


This content originally appeared on 2ality – JavaScript and more and was authored by Dr. Axel Rauschmayer

Iteration is a standard that connects operations with data containers: Each operation that follows this standard, can be applied to each data container that implements this standard.

In this blog post:

  • We first explore three questions:
    • How does JavaScript’s iteration work?
    • What are its quirks?
    • What do helper functions for iteration look like? Examples include iteration versions of the Array methods .map(), .filter(), and .forEach().
  • Next, we examine the pros and cons of several approaches for implementing helper functions: As methods of data containers? As functions? Etc. Two of these approaches are supported by concrete proposals.
  • The post concludes by explaining additional benefits of iteration and iteration-based helpers.
[Read rest of post]


This content originally appeared on 2ality – JavaScript and more and was authored by Dr. Axel Rauschmayer


Print Share Comment Cite Upload Translate Updates
APA

Dr. Axel Rauschmayer | Sciencx (2021-08-09T00:00:00+00:00) JavaScript needs more helper functions for iteration (map, filter, etc.) – where should we put them?. Retrieved from https://www.scien.cx/2021/08/09/javascript-needs-more-helper-functions-for-iteration-map-filter-etc-where-should-we-put-them/

MLA
" » JavaScript needs more helper functions for iteration (map, filter, etc.) – where should we put them?." Dr. Axel Rauschmayer | Sciencx - Monday August 9, 2021, https://www.scien.cx/2021/08/09/javascript-needs-more-helper-functions-for-iteration-map-filter-etc-where-should-we-put-them/
HARVARD
Dr. Axel Rauschmayer | Sciencx Monday August 9, 2021 » JavaScript needs more helper functions for iteration (map, filter, etc.) – where should we put them?., viewed ,<https://www.scien.cx/2021/08/09/javascript-needs-more-helper-functions-for-iteration-map-filter-etc-where-should-we-put-them/>
VANCOUVER
Dr. Axel Rauschmayer | Sciencx - » JavaScript needs more helper functions for iteration (map, filter, etc.) – where should we put them?. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/08/09/javascript-needs-more-helper-functions-for-iteration-map-filter-etc-where-should-we-put-them/
CHICAGO
" » JavaScript needs more helper functions for iteration (map, filter, etc.) – where should we put them?." Dr. Axel Rauschmayer | Sciencx - Accessed . https://www.scien.cx/2021/08/09/javascript-needs-more-helper-functions-for-iteration-map-filter-etc-where-should-we-put-them/
IEEE
" » JavaScript needs more helper functions for iteration (map, filter, etc.) – where should we put them?." Dr. Axel Rauschmayer | Sciencx [Online]. Available: https://www.scien.cx/2021/08/09/javascript-needs-more-helper-functions-for-iteration-map-filter-etc-where-should-we-put-them/. [Accessed: ]
rf:citation
» JavaScript needs more helper functions for iteration (map, filter, etc.) – where should we put them? | Dr. Axel Rauschmayer | Sciencx | https://www.scien.cx/2021/08/09/javascript-needs-more-helper-functions-for-iteration-map-filter-etc-where-should-we-put-them/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.