The United States economy is still humming, if the performance of some of the country’s biggest banks is any indication.

JPMorgan Chase and PNC Financial Services Group both reported strong performances on Friday for the first three months of 2019, including revenue that was higher than Wall Street analysts had expected. The banks’ results suggested that events like the government shutdown in January and President Trump’s trade war with China had little impact on large swaths of American businesses and consumers.

JPMorgan said its revenue from providing banking services to consumers and businesses was 15 percent higher than a year earlier. The growth stemmed in part from the bank’s credit card business.

The economy’s growth “could go on for years,” JPMorgan’s chief executive, Jamie Dimon, said on a conference call Friday. “There’s no law that says it has to stop.”