NEW YORK (TheStreet) -- Apple (AAPL) announced it repurchased $14 billion worth of shares in the previous two weeks, and that made TheStreet's Jim Cramer, co-manager of the Action Alerts PLUS portfolio, very happy.

Cramer, whose portfolio has AAPL as a holding, said the buyback "is exactly what is necessary." He pointed out that Apple was the best-performing stock of the ones he follows in the S&P 500 during the recent selloff. The strength was most likely helped along by Apple's opportunistic buying, where it used the emotional weakness seen in the stock price to scoop up more shares at a discount. 

Cramer also said the company has been buying back stock much more aggressively from what had been viewed as a somewhat lackadaisical purchasing plan. He said this move proves CEO Tim Cook is not oblivious to Apple's share price.

The buyback will save the company a lot of money in dividend payments since the shares it purchased will be retired. The buyback also works well in Apple's favor because the company financed the debt at very low interest rates. 

"This was perfect. Bravo, Tim Cook," he enthused.

-- Written by Bret Kenwell in Petoskey, Mich.

Bret Kenwell currently writes, blogs and also contributes to Robert Weinstein's Weekly Options Newsletter. Focuses on short-to-intermediate-term trading opportunities that can be exposed via options. He prefers to use debit trades on momentum setups and credit trades on support/resistance setups. He also focuses on building long-term wealth by searching for consistent, quality dividend paying companies and long-term growth companies. He considers himself the surfer, not the wave, in relation to the market and himself. He has no allegiance to either the bull side or the bear side.

More from Opinion

It's Dumb to Think Legalizing Weed Is Still a Political Issue

It's Dumb to Think Legalizing Weed Is Still a Political Issue

AAP Exclusive: Cramer Says The President is No Longer on the Side of the Bulls

AAP Exclusive: Cramer Says The President is No Longer on the Side of the Bulls

Why It Makes Perfect Sense for Netflix and Amazon to Buy Up Movie Theaters

Why It Makes Perfect Sense for Netflix and Amazon to Buy Up Movie Theaters

2 More Reasons to Sell All Your Stocks and Run Away

2 More Reasons to Sell All Your Stocks and Run Away

Sean Hannity's Link to Trump Lawyer Raises Questions: Doug Kass Insider

Sean Hannity's Link to Trump Lawyer Raises Questions: Doug Kass Insider