You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
Tools: Add prefer-arrow-callbacks to ESlint rules (#7810)
This commit is contained in:
@@ -10,7 +10,7 @@ export function shuffle<T>(array: T[]): T[] {
|
||||
}
|
||||
|
||||
export function unique<T>(array: T[]): T[] {
|
||||
return array.filter(function(elem, index, self) {
|
||||
return array.filter((elem, index, self) => {
|
||||
return index === self.indexOf(elem);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user