Mesut Ozil grabbed the Gunners' opener before Theo Walcott added a second.
Substitute Olivier Giroud curled in a fantastic third to seal the victory.
And Wenger was pleased with the performance.
Arsenal boss Arsene Wenger was pleased with the win over West Ham
"West Ham defended well in the first half and we needed to find a solution in the second half,” Wenger told BBC Sport.
“We were convincing after the break.
"Ozil and Sanchez are important players but everyone did well. You could not say any player had a bad performance.
Arsenal player ratings against West Ham
Wed, April 5, 2017
Click through the gallery for the Arsenal player ratings against West Ham
Arsenal FC via Getty Images
1 of 12
Click for the Arsenal player ratings against West Ham
Mesut Ozil scored Arsenal's opener against the Hammers
"We come out of a difficult period and our confidence goes quickly and comes back slowly.
"We are in the final sprint in the Premier League. Consistency will be very important.
"We have a little handicap on the points front. We have less possibilities to drop points."