手写filter 1.完整实现 过滤,改变this指向 1.完整实现 过滤,改变this指向 Array.prototype.jlFilter= function(fn,thisArg){ if( typeof fn !== 'function'){ throw new TypeError('type is error') } let self=this