Can anyone explain to me what this function does?

I am quite new to javascript, i can’t understand what is the purpose of this function and what fn stand for

var myfunc = function (fn, context) {
  return function () {
      return fn.apply(context, arguments);
  }
}