Reduce duplicate code in getListByRange (#28455)
Reduce duplicate code in getListByRange (#28455)


RyanCavanaugh/TypeScript,nojvek/TypeScript,nojvek/TypeScript,weswigham/TypeScript,alexeagle/TypeScript,Microsoft/TypeScript,kitsonk/TypeScript,donaldpipowitch/TypeScript,SaschaNaz/TypeScript,minestarks/TypeScript,microsoft/TypeScript,kitsonk/TypeScript,SaschaNaz/TypeScript,Microsoft/TypeScript,minestarks/TypeScript,donaldpipowitch/TypeScript,microsoft/TypeScript,alexeagle/TypeScript,kpreisser/TypeScript,kpreisser/TypeScript,kpreisser/TypeScript,Microsoft/TypeScript,SaschaNaz/TypeScript,weswigham/TypeScript,microsoft/TypeScript,nojvek/TypeScript,RyanCavanaugh/TypeScript,alexeagle/TypeScript,kitsonk/TypeScript,nojvek/TypeScript,donaldpipowitch/TypeScript,donaldpipowitch/TypeScript,RyanCavanaugh/TypeScript,SaschaNaz/TypeScript,weswigham/TypeScript,minestarks/TypeScript