add mixed arguments (string, array with strings, object with strings) - to library funcs support
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- tooling
调研方向
首先审查库函数,尤其是 _.words 和 _.trim,并将它们当前的参数处理方式与 issue 中混合使用字符串、数组和对象的示例进行比较。了解 _.each 的使用方式,并为每种受支持的输入类型确定一致的行为;当受影响的函数能够通过有文档记录且通过的测试处理指定输入时,工作即告完成。
由索引模型根据 Issue 内容生成。
描述
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);
- 主要语言
- JavaScript
- 星标
- 3.4k
- 派生
- 364
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
esamattis/underscore.string 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 28/100
esamattis/underscore.string#533 ·
-
难度 2/5 1-3 小时 新手友好度 30/100
esamattis/underscore.string#532 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
esamattis/underscore.string#527 · 2 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 20/100
esamattis/underscore.string#522 ·
-
难度 4/5 3-5 天 新手友好度 15/100
esamattis/underscore.string#521 ·
查看 esamattis/underscore.string 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 82/100
nodejs/node#66743 · 1 个 reaction ·
维护者通常 1 天内回复
-
enhancement good first issue help wanted
难度 2/5 1-3 小时 新手友好度 78/100
OWASP/cve-lite-cli#1335 ·
维护者通常 1 天内回复
-
Channels status: needs triage
难度 2/5 1-3 小时 新手友好度 70/100
mastra-ai/mastra#27093 · 1 条评论 ·
维护者通常 1 天内回复
-
category/development priority/P1 scope/ci-cd scope/testing status/ready-for-agent type/bug
难度 1/5 1 小时以内 新手友好度 72/100
QwenLM/qwen-code#14225 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100