Hammers emerged victorious in an entertaining London derby on Tuesday night