I do this out of habit:
function process( fn ){
// Some process that builds data
return fn( data );
}
It is not always necessary to return the callback, and I would like to know if there is any performance hit in doing that over simply calling the callback:
function process( fn ){
// Some process that builds data
fn( data );
}
And if so, or indeed if not, then why?