src/keys.js
function endsWith(str, ending) {
        if (str.length - ending.length === str.lastIndexOf(ending))
            return true;
        else return false;
    }
function endsWith(str, ending) {
        if (str.length - ending.length === str.lastIndexOf(ending))
            return true;
        else return false;
    }
function endsWith ( str , ending ) { if ( str . length - ending . length === str . lastIndexOf ( ending ) ) return true ; else return false ; }
Determine if a string ends with the provided string.

@memberof String
@instance
@param {string} str - The string to check
@param {string} ending - The string to match
Determine if a string ends with the provided string .