"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatInitialValue = void 0;
const formatInitialValue = (codeLength, initialValue) => {
    const initialArray = Array.from({ length: codeLength });
    if (initialValue) {
        initialValue.split('').forEach((symbol, index) => {
            initialArray[index] = symbol;
        });
    }
    return initialArray;
};
exports.formatInitialValue = formatInitialValue;
