"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getInitialCount = getInitialCount;
/** Returns length of the initial textarea's value. */
function getInitialCount(props) {
    var _a, _b;
    const { defaultValue, value } = props;
    return (_b = (_a = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.toString().length) !== null && _a !== void 0 ? _a : value === null || value === void 0 ? void 0 : value.toString().length) !== null && _b !== void 0 ? _b : 0;
}
//# sourceMappingURL=helpers.js.map