Skip to content

Collection collectors are not always correct #8

@devbridie

Description

@devbridie

For functions that cause mutations, the current approach of translating $("a").hide() to document.querySelectorAll("a").forEach(e => e.style.display = "none"); is possible, but functions that return values will not be transformed as expected.

Consider the following cases:

Therefore, the current forEach approach does not work for all cases.

Each transformation should be augmented with a transformation that should be used to collect the results of an application to a collection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingengine

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions