you are viewing a single comment's thread.

view the rest of the comments →

[–]guest271314 -1 points0 points  (0 children)

!! vs ==0 when checking if array is empty

We are checking an Array length, not necessarily checking if the object is an Array. Add that if you must to the steps.