What I'm trying to achieve is delete array element by its index and shift the rest of it to the left.
So, deleteshifting, say, 2-nd element of array ['a','b','c','d']
returns array ['a','c','d']
.
I've managed to do that using following code and I'm wondering, whether there's some built-in method (or their combination) around to do that in even more concise manner.
var src = ['a', 'b', 'c', 'd'];
const delShiftLeft = (arr, index) => arr.slice(0,index).concat(arr.slice(index+1));
console.log(delShiftLeft(src,1));