function StringEndsWith(string, searchString, position) {
    var subjectString = string.toString();
    if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) {
        position = subjectString.length;
    }
    position -= searchString.length;
    var lastIndex = subjectString.indexOf(searchString, position);
    return lastIndex !== -1 && lastIndex === position;
}
/**
 * Checks to see if a string ends with the given string.
 */
Checks to see if a string ends with the given string.
Checks to see if a string ends with the given string .
function StringEndsWith(string, searchString, position) {
    var subjectString = string.toString();
    if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) {
        position = subjectString.length;
    }
    position -= searchString.length;
    var lastIndex = subjectString.indexOf(searchString, position);
    return lastIndex !== -1 && lastIndex === position;
}
function StringEndsWith ( string , searchString , position ) { var subjectString = string . toString ( ) ; if ( typeof position !== 'number' || ! isFinite ( position ) || Math . floor ( position ) !== position || position > subjectString . length ) { position = subjectString . length ; } position -= searchString . length ; var lastIndex = subjectString . indexOf ( searchString , position ) ; return lastIndex !== - 1 && lastIndex === position ; }
Checks to see if a string ends with the given string.
Checks to see if a string ends with the given string .