Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nike80 opened this issue May 8, 2017 · 0 comments

Comments

@nike80
Copy link

nike80 commented May 8, 2017

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant