NEW YORK — The Los Angeles Dodgers have acquired outfielder Curtis Granderson and cash from the New York Mets for a player to be named later or cash.

The teams announced the deal after their games Friday night. The 36-year-old Granderson is hitting .228 with 19 home runs and 52 RBIs this year.

Los Angeles is running away with the NL West. The Dodgers are 86-34 after Friday's win at Detroit . Granderson gives Los Angeles another option for the outfield along with Cody Bellinger, Yasiel Puig, Chris Taylor and Joc Pederson.

Pederson has been struggling quite a bit of late, hitting .149 since the All-Star break. Granderson, like Pederson, offers some power from the left side of the plate.

This is Granderson's fourth team as he started with Tigers then went to Yankees. He signed a $60 million, four-year contract with the Mets before the 2014 season. He hit 95 home runs — including a grand slam in his final at-bat — for the Mets in 573 games and was part of the team that won the National League pennant in 2015.

Granderson said he had mixed emotions.

"I was excited, looking forward to the rest of the season," he said. "This changes some things up a little bit for me, but, excited, still going to come out ready to play. I'm going to try my best to help that team just like I was trying my best to help this team out. Looking forward to it."