Skip to content

Erroneous output for single argument arrow function returning a function #2

Description

@maarten-t

The output for the case below is [''] where it should be ['a'].

const functionArguments = require('function-arguments');
functionArguments(a => function (){}); // -> [''] but should be ['a']

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions