Typescript Check If An Array Is Full