LOS ANGELES (AP) Chris Heisey hit a grand slam during the Dodgers' six-run fifth inning, and Los Angeles trimmed its magic number to four for the NL West crown and a postseason berth with a 6-3 victory over the Arizona Diamondbacks on Thursday.

Clayton Kershaw (15-7) had nine strikeouts while yielding six hits and three runs over five innings. He also had a vehement dugout discussion with Don Mattingly after the manager pulled Kershaw from his shortest start of the season.

Last season's NL MVP leads the majors with 281 strikeouts. Kershaw left trailing 3-0, but ended up with his fifth victory in six starts when the Dodgers rallied for their second straight win.

More from FoxSports

Howie Kendrick had a two-run single for the Dodgers (87-65), who wrapped their 10-game homestand in firm command of their postseason destiny.

Patrick Corbin (6-5) was in control until the fifth inning of his second loss to the Dodgers in 12 days.