I have just seen a function written as followed:
function(callback, traversal) {
traversal.call(this, callback);
};
Does this code mean calling the 2nd function traversal
with the 1st function callback
as the parameter and pass this
as this
object into traversal
function call? Is this the old way of writing this kind of function? What is the ES6 way of writing it?