Function Currying (closure)

Now I have come into contact with more and more things,

But the foundation becomes more and more important,

You can take a look at the things written by the big guys, so that the things that will trigger thinking about yourself are still too thin, and the actual operations are not many (you need to summarize the things in your work)

I think function currying is equivalent to closure

Closure with nested function nested functions

Array.prototype.slice.call(arguements,1) Details

//Knowledge of pseudo-array pseudo-array

function test(a,b,c,d){
    
     
	console.log(arguments)
    var arg = Array.prototype.slice.call(arguments,1); 
    console.log(arg); 
} 
test("a","b","c","d"); 

Guess you like

Origin blog.csdn.net/ZHXT__/article/details/103447650