src/hft/scripts/misc/strings.js
function(str, end) {
    return (str.length >= end.length &&
            str.substring(str.length - end.length) === end);
  }
function(str, end) {
    return (str.length >= end.length &&
            str.substring(str.length - end.length) === end);
  }
function ( str , end ) { return ( str . length >= end . length && str . substring ( str . length - end . length ) === end ) ; }
True if string ends with suffix
@param {String} str string to check for start
@param {String} suffix start value
@returns {Boolean} true if str starts with suffix
@memberOf module:Strings
True if string ends with suffix