CodingTrain / CodingTrain/Suggestion-Box
Array Higher Order Functions in JavaScript
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 570
- Forks
- 85
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hello Daniel,
The [JavaScript Array prototype](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/prototype) provides a number of what are fancily known as [higher-order functions](https://medium.com/humans-create-software/a-dirt-simple-introduction-to-higher-order-functions-in-javascript-b33bf9e19056). Apart from the usual suspects [Array.prototype.map()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map), [Array.prototype.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) and [Array.prototype.reduce()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce), there are the lesser known [Array.prototype.sort()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort), [Array.prototype.some()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some) and [Array.prototype.every()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every) higher-order functions, not to mention [Array.prototype.forEach()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach) is also one. Having learnt these recently in JavaScript as well as Swift, I find them a very powerful tool to add in the toolbox of a programmer of any skill. They make array operations look significantly more structured in code. However, I do not know how efficient they are, when it comes to how fast one’s code runs.
I am raising this issue to request you to make a video tutorial on these higher-order functions, to reiterate, as knowing and using them are a powerful skill and they make your source code look far more structured and undeniably intuitive.
Sincerely,
Prathamesh Kowarkar
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start with the linked MDN references for Array.prototype.map(), filter(), reduce(), sort(), some(), every(), and forEach(). A completed contribution would be a video tutorial covering these higher-order functions, their structured usage, and the issue's question about runtime efficiency.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- content, documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 25/100