Skip to content

Commit

Permalink
Change usage of Array.prototype.find to ts.find.
Browse files Browse the repository at this point in the history
  • Loading branch information
j-oliveras committed Dec 9, 2018
1 parent c2898db commit f41b4e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/moduleSpecifiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ namespace ts.moduleSpecifiers {
return; // Don't want to a package to globally import from itself
}

const target = targets.find(t => compareStrings(t.slice(0, resolved.length + 1), resolved + "/") === Comparison.EqualTo);
const target = find(targets, t => compareStrings(t.slice(0, resolved.length + 1), resolved + "/") === Comparison.EqualTo);
if (target === undefined) return;

const relative = getRelativePathFromDirectory(resolved, target, getCanonicalFileName);
Expand Down

0 comments on commit f41b4e0

Please sign in to comment.