UNPKG

@markg85/webdav-server

Version:
15 lines (14 loc) 401 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.startsWith = void 0; var hasStartsWith = String.prototype.startsWith; if (hasStartsWith) { exports.startsWith = function (str, strToFind) { return str.startsWith(strToFind); }; } else { exports.startsWith = function (str, strToFind) { return str.lastIndexOf(strToFind, 0) === 0; }; }