esamattis / esamattis/underscore.string

add mixed arguments (string, array with strings, object with strings) - to library funcs support

Open
#504 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.