Skip to content

Directly import String.prototype.toLowerCase/toUpperCase #21

@eqrion

Description

@eqrion

It looks like a number of things were removed because they could be directly imported.

toLowerCase/toUpperCase are not possible to optimize to much more than just a function call, and can be directly imported.

You should be able to import toLowerCase/toUpperCase using:

Function.prototype.call.bind(String.prototype.toLowerCase)

This is optimized in V8 and SpiderMonkey AFAIK.

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