Typescript Empty Array Length Jquery W3schools