William Nylander had two goals and two assists and John Tavares added a goal and an assist against his former team as the Toronto Maple Leafs defeated the New York Islanders 5-2.