taraskevizer
Version:
Канвэртацыя акадэмічнага правапісу ў клясычны
7 lines (6 loc) • 317 B
JavaScript
import { mutatingStep } from '../lib/index.js';
export const convertAlphabet = mutatingStep(({ text, cfg: { abc: { upper, lower }, }, }) => {
text = lower(text);
return upper ? upper(text) : text;
});
export const convertAlphabetLowerCase = mutatingStep(({ text, cfg: { abc: { lower }, }, }) => lower(text));