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);
}
}
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
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);
}
}