Skip to content

[RFC]: add @stdlib/string/base/last-code-point #1702

Closed
@adityacodes30

Description

@adityacodes30

Description

This RFC proposes adding the package string/base/last-code-point which returns the last n Unicode code points of a string.

signature
lastCodePoint( string, n )

Eg.

var s = lastCodePoint( 'JavaScript', 6 );
// returns 'Script'

Package: @stdlib/string/base/last-code-point
Alias: lastCodePoint

This will help with development of @stdlib/string/last.

Related Issues

Related issues #854

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

Labels

AcceptedRFC feature request which has been accepted.FeatureIssue or pull request for adding a new feature.Good First IssueA good first issue for new contributors!JavaScriptIssue involves or relates to JavaScript.RFCRequest for comments. Feature requests and proposed changes.UtilitiesIssue or pull request concerning general utilities.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.priority: NormalNormal priority concern or feature request.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions