// same as "slice" in the previous examplevar slice = Function.prototype.apply.bindslice(arguments);function add(num1, num2){ }
var test = Function.prototype.apply.b
String.prototype.trim.call(" test ")还返回"test"。又一次很好!哦,这意味着我可以使用String.prototype.trim.call来映射一个丑陋的字符串数组,通过它们的修剪后的副本,对吗?[" test "].map(String.prototype.trim.call)不返回["test"]。
它抛出TypeError: undefined is not a function。