to set empty array in ts code example Example: initialize empty array typescript let temp: Criminal[] = [];