Assuming that all elements inside an array have a value different from undefined
, null
or 0
, is
if (idx < arr.length)
equivalent to if (arr[idx])
?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
Assuming that all elements inside an array have a value different from undefined
, null
or 0
, is
if (idx < arr.length)
equivalent to if (arr[idx])
?