| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b5073a0 commit 1767ef0
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -98,8 +98,7 @@ class URLSearchParams { | |||
| 98 | 98 | constructor(init = undefined) { | |
| 99 | 99 | if (init === null || init === undefined) { | |
| 100 | 100 | this[searchParams] = []; | |
| 101 | - } else if ((typeof init === 'object' && init !== null) || | ||
| 102 | - typeof init === 'function') { | ||
| 101 | + } else if (typeof init === 'object' || typeof init === 'function') { | ||
| 103 | 102 | const method = init[Symbol.iterator]; | |
| 104 | 103 | if (method === this[Symbol.iterator]) { | |
| 105 | 104 | // While the spec does not have this branch, we can use it as a | |
| Back | FazBrowse Home | New Git URL |
0 commit comments