start and end postions ?
const str = "The quick brown fox jumps over the lazy dog"; const sliceOut = (start, end) => str => str.slice(0, start) + str.slice(end, str.length); sliceOut(4, 10)(str); // 'The brown fox jumps over the lazy dog'
Обсуждают сегодня