CodingTrain / CodingTrain/Suggestion-Box
Array Higher Order Functions in JavaScript
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 570
- Fork
- 85
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia con i riferimenti MDN collegati su Array.prototype.map(), filter(), reduce(), sort(), some(), every() e forEach(). Un contributo completo consisterebbe in un video tutorial che tratti queste funzioni di ordine superiore, il loro utilizzo strutturato e la domanda dell’issue sull’efficienza a runtime.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- content, documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 25/100