We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e8294e commit f1bdbafCopy full SHA for f1bdbaf
src/lib/to-url-search-params.js
@@ -6,7 +6,7 @@ const mtimeToObject = require('./mtime-to-object')
6
module.exports = (args, options) => {
7
const searchParams = new URLSearchParams(options)
8
9
- if (args === undefined) {
+ if (args === undefined || args === null) {
10
args = []
11
} else if (!Array.isArray(args)) {
12
args = [args]
0 commit comments