export default function formatStringBlocks(text, blocks = [3, 4, 4], delimiter = '-') {
return blocks.reduce((result, length) => {
if (text.length) {
const part = text.substr(0, length);
text = text.substr(length);
result.push(part);
}
return result;
}, []).join(delimiter);
}