jeudi 29 janvier 2015

Javascript - check if there are any elements in an array

Trying to write an if statement to check if there are any elements in an array. If there is nothing inside it, then don't executing a function:


Blocks[{a},{b} etc ]


if (there is nothing inside the blocks array), don't execute checkBlocks().


Thank you all.


Aucun commentaire:

Enregistrer un commentaire