American Eagle Outfitters has done something many other retailers have struggled with amid the rise of Amazon.com, CNBC's Jim Cramer said Thursday.

"Someone knows how to sell in a mall, and it happens to be American Eagle Outfitters," Cramer said on "Squawk on the Street."