map, forEach, slice vs splice