change 6to5 that works with spread operators and rest parameters