Skip to content

[RFC]: Add @stdlib/string/base/replace-before #811

Closed
@kgryte

Description

@kgryte

Description

This RFC proposes adding a utility to replace the substring before the first occurrence of a specified search string.

Similar to other base string APIs, the package should assume valid inputs.

Logic should be similar to @stdlib/string/substring-before.

Package: @stdlib/string/base/replace-before
Alias: replaceBefore

Related Issues

None.

Questions

No.

Other

No.

Checklist

  • I have read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.
  • The issue name begins with RFC:.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureIssue or pull request for adding a new feature.Good First IssueA good first issue for new contributors!RFCRequest for comments. Feature requests and proposed changes.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions