TORONTO — Matt Boldy completed his second hat trick of the season, and sixth of his career, early in the third period and the Minnesota Wild sent the Toronto Maple Leafs to a fifth straight regulation home loss with a 5-2 victory Thursday night.

Minnesota trailed in the second period, but broke open a 2-2 game in the third.

“To tighten it up and play the way we did in the third speaks volumes to the the team and kind of what we’re capable of doing, to flip that switch and get back to playing the right way,” said Boldy, who had zero points after four games this season but now has 10 goals in the past 17 outings.

Boldy’s third goal of the night came after Maple Leafs winger William Nylander and defenseman Oliver Ekman-Larsson got their wires crossed off the rush to open a clear lane for the Wild winger.

Michael McCarron and Danila Yurov, into an empty net, also scored for Minnesota (14-3-4), which got 26 saves from Jesper Wallstedt. Kirill Kaprizov had three assists, and Yurov added an assist for a two-point night.

Minnesota got a scare in the second period when top-line center Joel Eriksson Ek went down in the neutral zone as a result of a blind-side hit by Toronto defenseman Jake McCabe.

Eriksson Ek was helped off the ice accompanied by a trainer and did not return.

“I think he’s OK. I don’t have an update of anything serious,” Wild coach John Hynes told reporters at Scotiabank Arena after the game. “I think we’ll see how it goes and probably have more information (Friday).”

Playing between Boldy and Kaprizov much of the season, Eriksson Ek has six goals and 11 assists in Minnesota’s first 21 games.

The Maple Leafs (8-11-2) have lost the first of five contests of what has turned into a disastrous six-game homestand to move to 1-7-0 over their last eight.

The Wild improved to 8-0-2 over their last 10 since last losing in regulation to the Calgary Flames on Oct. 22. Minnesota finishes its three-game road trip in Boston on Saturday.