angularjs javascript protractor selenium testing

Check there were no errors in the browser console with Protractor

I’m using Protractor to test AngularJS

I want to check that at the end of the test no uncaught exceptions occurred and were printed to the browser console.

Is there a simple way to do that?