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
I was reading the code to evaluate the usage, I found this line:
http2-express-bridge/src/util.js
Line 7 in 76b699e
return false
if (Array.isArray(arr)) { arr.forEach(item => { if(typeof item !== 'string'){ return false // <======= here } }) return true }
Probably it was intended this optimised version that will stop asap:
if (Array.isArray(arr)) { return arr.every(item => typeof item === 'string') }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I was reading the code to evaluate the usage, I found this line:
http2-express-bridge/src/util.js
Line 7 in 76b699e
The problem is that the
return false
does nothing more than finish the iteration and moving to the next element of the array.Probably it was intended this optimised version that will stop asap:
The text was updated successfully, but these errors were encountered: