Skip to content

Code improvement: ViewFieldParser replace .reduce that emulates .flat with .flat #126

@dbarenholz

Description

@dbarenholz

return [first, ...other.reduce<(UnvalidatedBindTargetDeclaration | string)[]>((acc, x) => acc.concat(x), [])];

this can be:

 return [first, ...other.flat()]; 

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