diff options
author | Alex Mingoia <talk@alexmingoia.com> | 2016-05-14 13:56:14 -0700 |
---|---|---|
committer | Alex Mingoia <talk@alexmingoia.com> | 2016-05-14 13:56:14 -0700 |
commit | 2d052df7f972f2a5fadf1711b13263a2e4dd6d33 (patch) | |
tree | 3a80716369c0a1a091a5ed2d31853b0382a17840 /src | |
parent | 9dc1021066dea00eb43574e705df383728e667e2 (diff) | |
download | purs-loader-2d052df7f972f2a5fadf1711b13263a2e4dd6d33.tar.gz purs-loader-2d052df7f972f2a5fadf1711b13263a2e4dd6d33.tar.zst purs-loader-2d052df7f972f2a5fadf1711b13263a2e4dd6d33.zip |
Correctly parse boolean options.
Diffstat (limited to 'src')
-rw-r--r-- | src/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index 23a99dd..e09d247 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -467,6 +467,6 @@ function dargs(obj) { | |||
467 | else if (Array.isArray(val)) val.forEach(v => args.push(arg, v)) | 467 | else if (Array.isArray(val)) val.forEach(v => args.push(arg, v)) |
468 | else args.push(arg, obj[key]) | 468 | else args.push(arg, obj[key]) |
469 | 469 | ||
470 | return args | 470 | return args.filter(arg => (typeof arg !== 'boolean')) |
471 | }, []) | 471 | }, []) |
472 | } | 472 | } |