LOS ANGELES — One ace helped the Los Angeles Dodgers stave off elimination against the New York Mets.

Now their other one gets a chance to extend the playoffs in a winner-take-all Game 5.

Coming off Clayton Kershaw’s stellar outing that tied the NL division series 2-2, Zack Greinke takes the mound Thursday night against Jacob deGrom of the Mets.

DeGrom, the Game 1 winner over Kershaw, will pitch on full rest, just like Game 2 winner Greinke.

The Dodgers are trying to advance to the NL Championship Series for the first time in two years. The Mets are seeking their first playoff series win since 2006, also the last time they were in the postseason.

The winner takes on the Chicago Cubs in the NLCS at home starting Saturday.

Fittingly, the Dodgers’ season could be prolonged or end on back-to-back appearances by Kershaw and Greinke, whose arms propelled them to a third consecutive NL West title and a franchise-record third straight playoff appearance.

“They’ve given us two guys that stop streaks, save your bullpen, are just day-in, day-out consistent guys,” Manager Don Mattingly said by phone Wednesday when both teams traveled back to Los Angeles. “You can really count on what you’re going to get from them 90-something percent of the time.”

With Greinke and deGrom squaring off again, Kershaw said the series is “dead-even.”

Greinke has pitched at least six innings in all 33 of his starts with a 1.66 ERA that led the majors. He has allowed two or fewer runs 27 times.

Greinke is facing the Mets for the second time in five days, only now the Dodgers’ season is on the line for the second straight game.

Mattingly said catcher Yasmani Grandal is 50-50 to play because of his left shoulder that he tweaked in Game 3. He said the issue is whether Grandal can swing without pain; catching would not bother him.

If Grandal can’t go, A.J. Ellis would start. Greinke said he’s pitched equally well with either one behind the plate.