• Custom User Avatar
    • No random tests

    • Node 12 should be enabled

  • Custom User Avatar

    Tests are using Test.expect.

  • Default User Avatar

    Nice one, but I believe the description could use some improvements - specifically, I think it should be more specific about the argument names.

    There's no information indicating whether the argument names should be extracted from the value (as the usage example might imply) or fixed arg names should be used (as the test cases seem to indicate).

    I'm guessing the latter was the original intent, but seeing how most solutions focus on parsing the values, the description definitely is not clear enough in this regard.

  • Custom User Avatar

    Lack of test cases. Results of the solutions will be unexpected with below code.

    function f(a, //comment
    b,
    /*
    some comments
    */
    c){}
    
  • Custom User Avatar

    Have I to preserve original parameters names?