"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
if (!String.prototype.center) {
    String.prototype.center = function (maxLength, fillString) {
        fillString = fillString || ' '; // If fillString is undefined, use space as default
        return this.length >= maxLength
            ? this.toString()
            : this.padStart((this.length + maxLength) / 2, fillString).padEnd(maxLength, fillString);
    };
}
//# sourceMappingURL=string.extensions.js.map