create initial empty array javascript with type typedef code example Example: initialize empty array typescript let temp: Criminal[] = [];