UNPKG

taraskevizer

Version:

Канвэртацыя акадэмічнага правапісу ў клясычны

6 lines (5 loc) 290 B
export const storeSplittedText = ({ text, storage, }) => { storage.textArr = text.split(' '); if (storage.textArr.length !== storage.origArr.length) throw new Error('The number of words in the source string is not equal to the processed one. Please, report the issue.'); };