Javascript String startsWith(input)

Description

Javascript String startsWith(input)


'use strict';// w  w w. jav a2s  . c  o  m

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



PreviousNext

Related