JavaScript call() and Prototype - Slice Function
问题 I'm reading the MDN Article on slice in JavaScript. I understand everything except the 2nd example in the section titled Array-Like Objects . It says we can simplify the first example by making slice our own function as so: var unboundSlice = Array.prototype.slice; var slice = Function.prototype.call.bind(unboundSlice); function list() { return slice(arguments); } var list1 = list(1, 2, 3); // [1, 2, 3] What I don't understand is how call can come right after prototype on the second line. I