I have not seen this before. The if statement includes simply an object
- if(grid && grid.length > 10) ...
where "grid" is the object. Is the way it s coded here a typical usage, being there s no test for a true or false condition. Maybe it s just asking if the object exists or not?
Seems to work as otherwise expected. 我不知道,作为独立条件的物体是否正在做任何事情。