Skip to content

change current .first() behavior to return a query object and add .raw() for raw nodes. #14

@jsoverson

Description

@jsoverson

It's becoming increasingly common to want to continue chaining passed .first() now that there is a .statements() method, e.g.

$functionExpression.statements().first().prepend('debugger');

This may be important for .map, .filter, et al too. It starts to be unclear when a query object turns into an Array during chains.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions