Skip to content

Commit

Permalink
fix: remove unused utility methods + applied linter
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed May 28, 2023
1 parent 33b4ea4 commit 76baf8e
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 167 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"parserOptions": {
"project": "./tsconfig.eslint.json"
},
"ignorePatterns": ["**/dist/*", "**/*.d.ts", "**/test/*"],
"ignorePatterns": ["**/dist/*", "**/*.d.ts"],
"globals": {
"NodeJS": true
},
Expand Down
8 changes: 0 additions & 8 deletions src/utils/array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,3 @@ export function distinctArray<T = any>(arr: T[]) : T[] {

return arr;
}

export function mergeArrays(...sources: any[][]) : any[] {
return ([] as any[]).concat.apply([], [...sources]);
}

export function mergeArraysDistinct(...sources: any[][]) : any[] {
return distinctArray(mergeArrays(...sources));
}
Loading

0 comments on commit 76baf8e

Please sign in to comment.