进口 rest参数 从 './ restArguments.js' ; 进口 is功能 从 './ isFunction.js' ; 进口 executeBound(执行绑定) 从 './_ executeBound.js' ;
进口 rest参数 从 './ restArguments.js' ; 进口 is功能 从 './ isFunction.js' ; 进口 executeBound(执行绑定) 从 './_ executeBound.js' ;
出口 违约 rest参数 ( 功能 ( 函数,上下文,参数 ) { 如果 (! is功能 (函数) 扔 新的 类型错误 ( '必须对函数调用Bind' ); 无功功率,无功功率 绑定= rest参数 ( 功能 ( 调用参数 ) { 返回 executeBound(执行绑定) (函数,绑定,上下文, 这 ,参数。 凹面(concat) (callArgs)); }); 返回 绑定; });