Apple is on the brink of becoming the first company in history to surpass a $4 trillion market valuation, Fortune reports.