Optimize core filter function to only allocate when necessary
Optimize core filter function to only allocate when necessary

chuckjaz/TypeScript,kitsonk/TypeScript,vilic/TypeScript,basarat/TypeScript,synaptek/TypeScript,kpreisser/TypeScript,RyanCavanaugh/TypeScript,minestarks/TypeScript,SaschaNaz/TypeScript,TukekeSoft/TypeScript,alexeagle/TypeScript,jeremyepling/TypeScript,jwbay/TypeScript,TukekeSoft/TypeScript,alexeagle/TypeScript,microsoft/TypeScript,donaldpipowitch/TypeScript,DLehenbauer/TypeScript,mihailik/TypeScript,RyanCavanaugh/TypeScript,vilic/TypeScript,DLehenbauer/TypeScript,Eyas/TypeScript,nojvek/TypeScript,Eyas/TypeScript,DLehenbauer/TypeScript,chuckjaz/TypeScript,basarat/TypeScript,minestarks/TypeScript,erikmcc/TypeScript,synaptek/TypeScript,erikmcc/TypeScript,basarat/TypeScript,mihailik/TypeScript,microsoft/TypeScript,vilic/TypeScript,jeremyepling/TypeScript,Microsoft/TypeScript,thr0w/Thr0wScript,erikmcc/TypeScript,TukekeSoft/TypeScript,weswigham/TypeScript,Eyas/TypeScript,kitsonk/TypeScript,mihailik/TypeScript,kitsonk/TypeScript,erikmcc/TypeScript,vilic/TypeScript,nojvek/TypeScript,jwbay/TypeScript,weswigham/TypeScript,jwbay/TypeScript,mihailik/TypeScript,thr0w/Thr0wScript,jeremyepling/TypeScript,RyanCavanaugh/TypeScript,chuckjaz/TypeScript,thr0w/Thr0wScript,synaptek/TypeScript,chuckjaz/TypeScript,microsoft/TypeScript,donaldpipowitch/TypeScript,SaschaNaz/TypeScript,synaptek/TypeScript,SaschaNaz/TypeScript,basarat/TypeScript,jwbay/TypeScript,minestarks/TypeScript,Microsoft/TypeScript,kpreisser/TypeScript,nojvek/TypeScript,SaschaNaz/TypeScript,donaldpipowitch/TypeScript,thr0w/Thr0wScript,Microsoft/TypeScript,donaldpipowitch/TypeScript,weswigham/TypeScript,alexeagle/TypeScript,nojvek/TypeScript,Eyas/TypeScript,DLehenbauer/TypeScript,kpreisser/TypeScript