Skip to content

Commit 315a8e3

Browse files
fix: removing nested nulls from options passed to api, closes #581
1 parent 990b95a commit 315a8e3

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib-es5/utils/index.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,18 +1602,6 @@ function hashToQuery(hash) {
16021602
*/
16031603

16041604
function present(value) {
1605-
// if (typeof value === 'string' || Array.isArray(value)) {
1606-
// return value.length > 0;
1607-
// } else if (typeof value === 'number') {
1608-
// return value > 0;
1609-
// } else if (typeof value === 'object') {
1610-
// return true;
1611-
// } else if (typeof value === 'boolean') {
1612-
// return value;
1613-
// }
1614-
if (Array.isArray(value)) {
1615-
return true;
1616-
}
16171605
return value != null && ("" + value).length > 0;
16181606
}
16191607

0 commit comments

Comments
 (0)