Javascript String startsWith(x)

Description

Javascript String startsWith(x)


String.prototype.startsWith = function (x) {
  return this.indexOf(x) === 0;
};



PreviousNext

Related