UNPKG

@bherila/react-native-otp-inputs

Version:

One-time password inputs built in pure JS for React-Native

10 lines (8 loc) 271 B
export const fillOtpCode = (numberOfInputs, value) => { const otpCode = {}; for (let i = 0; i < numberOfInputs; i++) { otpCode[`${i}`] = (value === null || value === void 0 ? void 0 : value[i]) || ''; } return otpCode; }; //# sourceMappingURL=helpers.js.map