Skip to content

Strings #36

@ljharb

Description

@ljharb

I read https://github.com/tc39/proposal-slice-notation#should-slice-notation-work-on-strings , but I’m not convinced that the syntax shouldn’t work on strings. The string slice method is used extensively, in modern code bases, unicode issues notwithstanding. Why wouldn’t these use cases deserve robust syntax sugar?

(one of the great things about slice is that it’s the same method on both strings and arrays; it’d be a shame to lose that)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions