Skip to content

Commit bfdcaab

Browse files
committed
chore: lint fix
1 parent 09a2a2a commit bfdcaab

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/array/base.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { isFunction } from '../is'
22

33
/**
44
* @description 返回数组不同的值
5-
* @param array (Array): 要检查的数组。
5+
* @param root (Array): 要检查的数组1。
6+
* @param other (Array): 要检查的数组2。
67
* @returns [values] (...Array): 排除的值。
78
*/
89
export function diff<T>(root: readonly T[], other: readonly T[], identity: (item: T) => string | number | symbol = (t: T) =>

src/browser/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
export function getURLParameters(url: string): object {
2-
return (url.match(/([^?=&]+)(=([^&]*))/g) || []).reduce(
3-
(a, v) => (
4-
(a[v.slice(0, v.indexOf('='))] = v.slice(v.indexOf('=') + 1)), a
5-
),
6-
{},
7-
)
8-
}
1+
// export function getURLParameters(url: string): object {
2+
// return (url.match(/([^?=&]+)(=([^&]*))/g) || []).reduce(
3+
// (a, v) => (
4+
// (a[v.slice(0, v.indexOf('='))] = v.slice(v.indexOf('=') + 1)), a
5+
// ),
6+
// {},
7+
// )
8+
// }
99

1010
// export function addMultipleListeners(el, types, listener, options, useCapture) {
1111
// types.forEach(type =>

0 commit comments

Comments
 (0)