Skip to content

For-loop inc/dec optimization #143

@braksator

Description

@braksator

Sorry if this is the wrong department, but from your doc example output:/

var a='world';for(let i=0;i<a.length;i++)console.log(a[i]);

would be better if you move the incremementing of the variable to the last use of the variable:

var a='world';for(let i=0;i<a.length;)console.log(a[i++]);

infact...

var a='world',i=0;for(;i<a.length;)console.log(a[i++]);

(if ya nasty)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions