JSFiddle - React, Tailwind, and code Playground
by js_test
JavaScript
const paradiddle = `RLRR`.split('');
const next = paradiddle.map((letter, index) => {
if (!index) {
return paradiddle
}
return paradiddle.slice(index).splice();
})
/* console.log(paradiddle[(1 - 1)]) */
console.log(next)
/*
var months = ['Jan', 'March', 'April', 'June']; */
months /* .splice(1, 0, 'Feb') */;