We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5073a0 commit 1767ef0Copy full SHA for 1767ef0
lib/internal/url.js
@@ -98,8 +98,7 @@ class URLSearchParams {
98
constructor(init = undefined) {
99
if (init === null || init === undefined) {
100
this[searchParams] = [];
101
- } else if ((typeof init === 'object' && init !== null) ||
102
- typeof init === 'function') {
+ } else if (typeof init === 'object' || typeof init === 'function') {
103
const method = init[Symbol.iterator];
104
if (method === this[Symbol.iterator]) {
105
// While the spec does not have this branch, we can use it as a
0 commit comments