Javascript String startsWith(passed)

Description

Javascript String startsWith(passed)


String.prototype.startsWith = function(passed) {
    return text.slice(0, passed.length) === passed
};



PreviousNext

Related