File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function activate(context: vscode.ExtensionContext): void {
1616 vscode . commands . registerCommand ( 'sortLines.sortLinesShuffle' , sortLines . sortShuffle ) ,
1717 vscode . commands . registerCommand ( 'sortLines.removeDuplicateLines' , sortLines . removeDuplicateLines ) ,
1818 vscode . commands . registerCommand ( 'sortLines.keepOnlyDuplicateLines' , sortLines . keepOnlyDuplicateLines ) ,
19- vscode . commands . registerCommand ( 'sortLines.keepOnlyNotDuplicateLines' , sortLines . keepOnlyNotDuplicateLines ) ,
19+ vscode . commands . registerCommand ( 'sortLines.keepOnlyNotDuplicateLines' , sortLines . keepOnlyNotDuplicateLines )
2020 ] ;
2121
2222 commands . forEach ( command => context . subscriptions . push ( command ) ) ;
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ function keepOnlyDuplicates(lines: string[]): string[] {
6161}
6262
6363function keepOnlyNotDuplicates ( lines : string [ ] ) : string [ ] {
64- return Array . from ( new Set ( lines . filter ( ( element , index , array ) => ( array . lastIndexOf ( element ) == array . indexOf ( element ) ) ) ) ) ;
64+ return Array . from ( new Set ( lines . filter ( ( element , index , array ) => ( array . lastIndexOf ( element ) === array . indexOf ( element ) ) ) ) ) ;
6565}
6666
6767function removeBlanks ( lines : string [ ] ) : void {
You can’t perform that action at this time.
0 commit comments