Javascript String endsWith(passed)

Description

Javascript String endsWith(passed)

String.prototype.endsWith = function(passed) {
    return text.indexOf(passed, text.length - passed.length) !== -1;
};



PreviousNext

Related