Typescript Empty Array Length Jquery Datepicker