Home Reference Source

src/utils/hotfixes/polyfills/StartsWith.js

/**
 * Created by lundfall on 2/4/16.
 */

if (!String.prototype.startsWith) {
    String.prototype.startsWith = function (searchString, position) {
        position = position || 0;
        return this.substr(position, searchString.length) === searchString;
    };
}