Amazon, Dow, UPS, Pinterest, and T-Mobile are among the many companies to announce layoffs in the last couple of weeks.