Kata 7 codewars help

Kata 7 codewars help
0

#1

help… i know that first argument is always func…


#2

Hard to help without knowing what kata you’re trying to solve. Also, what have you done so far to try and solve it?

If you can post the link to the kata, what language you’re trying to solve it with, and just your core code. (Like if you’re doing a javascript kata, just post the script code)


#3

it’s in the link in comments… tab in repl.it script.js


#4

My point was to not have to dig for the important information needed to help you :wink:

I’ll post it here:

Lazily executing a function

var make_lazy = function () {
  const arr = Array.from(arguments).slice(1);
  return argumets[0].apply(null, arr)
};

#5

DONE)

var make_lazy = function() {
  const arr = Array.from(arguments);
  const func = arr[0];
  const myArr = arr.slice(1);
  return function() {
    return func.apply(null, myArr);
  };
};