Skip to content

[unicorn/prefer-at] should avoid auto fix " parent?.childNodes[parent.childNodes.length - 1];" #2098

@tjx666

Description

@tjx666

origin:

parent?.childNodes[parent.childNodes.length - 1];

after auto fix:

parent?.childNodes.at(-1);

unicorn/prefer-at

not safe

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions