Skip to content

Commit a0b2254

Browse files
committed
ts-1: address typescript warning
1 parent 315a5f2 commit a0b2254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typescript/Two Pointers/triplet_sum_brute_force.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ function tripletSumBruteForce(nums: number[]): number[][] {
1616
}
1717
}
1818
// [javascript] convert the Set back into an array of triplets.
19-
return Array.from(triplets).map(JSON.parse);
19+
return Array.from(triplets).map((str) => JSON.parse(str));
2020
}

0 commit comments

Comments
 (0)