Two potential ways to quickly see if a company has a competitive advantage: 

1. Their ROIC (return on invested capital) is consistently above 15%.

2. Their gross profit margin is consistently above 40%.

As a general rule, using those 2 metrics will point you to quality stocks.