Pass callback params
How to pass callback parameters into a supplied parameter function.
JavaScript
// data
var args = ['fish','chicken','rice'];
// plugin
function e(name,inner){
// Params
console.log('The interface name is ',name)
console.log(arguments[1].apply(this,args))
}
// API
e('Sub menu', function(one,two,three){
return [one,two, three, 'flour']
console.log('scope args', one,two,three);
});