stdlib-js / stdlib-js/stdlib

[RFC]: add `symbol/split`

Abierto
#8,488 9 comentarios 0 reacciones 0 asignados Ver en GitHub
Accepted difficulty: 1 Feature Good First Issue JavaScript priority: Normal RFC
Lenguaje dominante
JavaScript
Estrellas
6k
Forks
1.3k
Merge medio
1 d 3 h
PR fusionados (30 d)
611

Descripción

### 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:`.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.