Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
About Array lengths - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
4y ago
•
1 reply
ei
About Array lengths
Hi guys I have a question
, let
's say I got an array
. Then I will execute an if statement saying
if(!array.length) return
if(!array.length) return
Now the question
, does mean that the arrays length is equal to 0
.
.
. or null
? And is it different if I say
if(array.length === 0) return
if(array.length === 0) return
Thanks
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Doubt in Array and strings about the references
KP-C
Kevin Powell - Community / front-end
3y ago
Array
KP-C
Kevin Powell - Community / front-end
2y ago
Array issue (Unwanted changes to the array)
KP-C
Kevin Powell - Community / front-end
3y ago
JavaScript Array Question
KP-C
Kevin Powell - Community / front-end
2y ago