Walmart Inc. (WMT - Get Report) said Wednesday it is raising the age limit for purchase of firearms and ammunition to 21, and will implement the change as soon as possible.

The company also said it is removing from its website items "resembling assault-style rifles, including nonlethal airsoft guns and toys."

The retailer, which has 4,761 Walmart stores in the U.S., noted in a statement that in 2015, it ended sales of modern sporting rifles, including the AR-15. "We also do not sell handguns, except in Alaska where we feel we should continue to offer them to our customers. Additionally, we do not sell bump stocks, high-capacity magazines and similar accessories."

Also on Wednesday, Dick's Sporting Goods Inc. (DKS - Get Report) joined the growing list of companies responding to the national gun debate. Dick's said it will no longer sell assault-style rifles in its 853 stores and online. Dick's, which is one of the largest sports retailers in the country, will also halt sales of high-capacity magazines and won't sell guns to anyone under the age of 21, regardless of local law.

The moves by Walmart, Dick's and other stores come about two weeks after the school shooting in Parkland, Fla., that killed 17 students and staff members. Since the shooting, the nation has entered into a fierce debate over gun laws and the Second Amendment.

This article was written by a staff member of TheStreet.