code: function (search) {
              var len = Math.min(_gpfStringGetOptionalParam(arguments, this.length), this.length);
              return this.substring(len - search.length, len) === search;
          }
docs: Introduced with ECMAScript 2015