That was an unprofessional thing to do. They could have given the courtesy 2 week notice.
I disagree. I’ve been layed of twice in 40 years. We had heard that layoffs may be coming. The layoffs came on a Friday morning, not notice. Two weeks notice would not have accomplished a thing other than problems in production. If you are going to layoff employees, get it over with and get on with business.
What 2 week notice? Layoffs are like bolts out of the blue.