Skip to content

[RFC]: add @stdlib/string/base/last #1696

Closed
@adityacodes30

Description

@adityacodes30

Description

This RFC proposes adding the string/base/last package which will return the last n UTF-16 code units of a string.

Signature:
last( string, n )

Eg.

var s = first( 'hello', 1 );
// returns 'o'

Package: @stdlib/string/base/last
Alias: last

This will help with development of @stdlib/string/last issue #854

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

No one assigned

    Labels

    FeatureIssue or pull request for adding a new feature.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