Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce51a09

Browse files
author
Andy
authored
Add another use of the Comparer type (microsoft#17438)
1 parent 039e85a commit ce51a09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ namespace ts {
711711
* are not present in `arrayA` but are present in `arrayB`. Assumes both arrays are sorted
712712
* based on the provided comparer.
713713
*/
714-
export function relativeComplement<T>(arrayA: T[] | undefined, arrayB: T[] | undefined, comparer: (x: T, y: T) => Comparison = compareValues, offsetA = 0, offsetB = 0): T[] | undefined {
714+
export function relativeComplement<T>(arrayA: T[] | undefined, arrayB: T[] | undefined, comparer: Comparer<T> = compareValues, offsetA = 0, offsetB = 0): T[] | undefined {
715715
if (!arrayB || !arrayA || arrayB.length === 0 || arrayA.length === 0) return arrayB;
716716
const result: T[] = [];
717717
outer: for (; offsetB < arrayB.length; offsetB++) {

0 commit comments

Comments
 (0)