UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

18 lines (16 loc) 429 B
'use client'; function createPinArray(length, value) { if (length < 1) { return []; } const values = new Array(length).fill(""); if (value) { const splitted = value.trim().split(""); for (let i = 0; i < Math.min(length, splitted.length); i += 1) { values[i] = splitted[i] === " " ? "" : splitted[i]; } } return values; } export { createPinArray }; //# sourceMappingURL=create-pin-array.mjs.map