Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hungdao-testing opened this issue May 26, 2023 · 0 comments

Comments

@hungdao-testing
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant