a-synchronous / a-synchronous/rubico
rubico/x/startsWith
未关闭
适合新手
enhancement
- 主要语言
- JavaScript
- 星标
- 283
- 派生
- 17
- PR 合并指标
- 30 天内没有已合并 PR
描述
```coffeescript
startsWith(prefix string)(value string) -> boolean
```
Determine whether a string starts with a prefix.
```javascript
console.log(startsWith('h')('hey')) // true
```
贡献指南
调研方向
Look for the x/ directory in the codebase, which likely contains utility functions. Check existing similar functions (like endsWith) to understand the pattern. Implement startsWith to take a prefix string and return a function that checks if a given string starts with that prefix. Write a test in the test suite to verify the behavior matches the example.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- backend-api-design
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 65/100