esamattis / esamattis/underscore.string
add mixed arguments (string, array with strings, object with strings) - to library funcs support
Open
- Dominant language
- JavaScript
- Stars
- 3.4k
- Forks
- 367
- PR merge metrics
- No merged PRs in 30d
Description
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);
Contributor guide
Assessment
This issue has not been assessed yet.