esamattis / esamattis/underscore.string
add mixed arguments (string, array with strings, object with strings) - to library funcs support
- Lingua principale
- JavaScript
- Stelle
- 3.4k
- Fork
- 367
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
The improuvment required.
All func must get not a strings, but a mixed argument: string, array of strings or object. Then fuc must check arg in typeof() and if the arg is array call _.each() for each element of array or object.
F.e.
var w = _.words(" a, b, c ", ",");
var trimmed = _.trim(w);
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia eseguendo un audit delle funzioni della libreria, in particolare _.words e _.trim, e confronta la gestione attuale dei loro argomenti con gli esempi dell'issue che combinano stringhe, array e oggetti. Leggi come viene usato _.each e determina un comportamento coerente per ogni tipo di input supportato; il lavoro è completato quando le funzioni interessate gestiscono gli input specificati con test documentati e superati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100