We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if (toStringify[key] && ('' + toStringify[key])) { list[i] = `${key}=${toStringify[key]}`; } else { list[i] = `${key}`; }
if 判断的 condition 为什么要这么写呢? 什么情况下会是 toStringify[key] 为 true,而 '' + toStringify[key] 为 false 呢? https://github.com/aliyun/api-gateway-nodejs-sdk/blob/master/lib/client.js#L106
toStringify[key]
true
'' + toStringify[key]
false
The text was updated successfully, but these errors were encountered:
欢迎发 PR,这个地方应该是参考了其他 SDK 不小心引入的坏味道。
Sorry, something went wrong.
当toStringfy[key] = ‘’时
我觉得在check是不是空string的时候,explicit check会比较好
No branches or pull requests
if 判断的 condition 为什么要这么写呢?
什么情况下会是
toStringify[key]
为true
,而'' + toStringify[key]
为false
呢?https://github.com/aliyun/api-gateway-nodejs-sdk/blob/master/lib/client.js#L106
The text was updated successfully, but these errors were encountered: