Remove 'indexOf' helper, use 'arr.indexOf()' (#20194)

This commit is contained in:
Andy
2018-01-08 10:39:52 -08:00
committed by GitHub
parent f83283c068
commit fc18f08e63
8 changed files with 29 additions and 38 deletions

View File

@@ -420,7 +420,7 @@ namespace ts {
host.getCanonicalFileName,
/*isAbsolutePathAnUrl*/ true);
sourceMapSourceIndex = indexOf(sourceMapData.sourceMapSources, source);
sourceMapSourceIndex = sourceMapData.sourceMapSources.indexOf(source);
if (sourceMapSourceIndex === -1) {
sourceMapSourceIndex = sourceMapData.sourceMapSources.length;
sourceMapData.sourceMapSources.push(source);