JS Split String с эмодзи
function splitStringAtIndex(value: string, index: number) {
const arr = [...value] // Fix emojis
return [arr.slice(0, index).join(''), arr.slice(index).join('')]
}
florinrelea