stdlib-js / stdlib-js/stdlib

[RFC]: add `symbol/split`

未关闭
#8,488 9 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Accepted difficulty: 1 Feature Good First Issue JavaScript priority: Normal RFC
主要语言
JavaScript
星标
6k
派生
1.3k
平均合并
1 天 3 小时
30 天内合并 PR
611

描述

### Description

This RFC proposes adding the package `symbol/split`.

The package should be very similar to the following existing packages:

- `symbol/has-instance`
- `symbol/iterator`
- `symbol/async-iterator`
- `symbol/is-concat-spreadable`

The primary difference is that the package should export `Symbol.split` if it exists.

### Related Issues

None.

### Questions

No.

### Other

When adding this package, one should do the following:

- copy one of the existing packages mentioned above
- rename the copied package
- find and replace the package name (e.g., `has-instance` => `split`)
- find and replace the variable name (e.g., `HasInstanceSymbol` => `SplitSymbol`)
- ensure the copyright years are 2025
- update the descriptions according to the symbol's purpose (see MDN)
- update examples to reflect the symbol's purpose (see existing packages for inspiration)
- run tests, benchmarks, and examples to ensure that everything passes
- go back through and check that there are no copy-paste mistakes

### Checklist

- [x] I have read and understood the [Code of Conduct](https://github.com/stdlib-js/stdlib/blob/develop/CODE_OF_CONDUCT.md).
- [x] Searched for existing issues and pull requests.
- [x] The issue name begins with `RFC:`.

贡献指南

打开贡献指南

调研方向

Start by comparing symbol/has-instance, symbol/iterator, symbol/async-iterator, and symbol/is-concat-spreadable to identify the package structure, tests, benchmarks, and examples to copy. Check MDN for Symbol.split and update the copied package's descriptions and examples accordingly. Done means the new symbol/split package exports Symbol.split when available, has updated 2025 copyright years, and its tests, benchmarks, and examples pass.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
tooling
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。