Skip to content

Commit

Permalink
fix: 优化
Browse files Browse the repository at this point in the history
  • Loading branch information
galaxy-s10 committed Dec 15, 2023
1 parent 44e66a9 commit 3551364
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
// 在保存时格式化
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
// 在保存时运行eslint
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
}
// 废弃,使用editor.codeActionsOnSave替代
// "eslint.autoFixOnSave": true
Expand Down
1 change: 1 addition & 0 deletions src/js/array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const getArrayIntersection = (a: any[], b: any[]) => {
* @description 获取数组的对称差集(不修改原数组)
* @example
* a[1,2,3,4,5],b[3,4,5,6,7],a和b的对称差集:getArraySymmetricDifference(a,b) ===> [1,2,6,7]
* a[1,2,3,4,5],b[3,4,5,6,7],b和a的对称差集:getArraySymmetricDifference(b,a) ===> [6,7,1,2]
* @param {any} a
* @param {any} b
* @return {*}
Expand Down

0 comments on commit 3551364

Please sign in to comment.