Skip to content

[Partial application without Bind] Why a few of test cases are passed, some are failed #211

@hungdao-testing

Description

@hungdao-testing

Hi all,

Would you guys have a look at my code to help me figure out what wrong in my code that causes some cases are passed , some are failed

var slice = Array.prototype.slice;
function logger(namespace) {
  // SOLUTION GOES HERE

  let arr = slice.call(arguments);
  return function (...params) {
    arr.push.apply(arr, params);
    console.log.apply(null, arr);
  };
}

Screenshot
image

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