A robust & optimized ES3-compatible polyfill for the `String.prototype.endsWith` method in ECMAScript 6.