JSFiddle - React, Tailwind, and code Playground

JavaScript

var table = [
    ['a', 'b', 'c'],
    ['c', 'd', 'e'],
    ['f', 'g', 'h']
];


var removeCol = function(arr, colIndex) {
    for (var i = 0; i < arr.length; i++) {
        var row = arr[i];
        row.splice(colIndex, 1);
    }
}

removeCol(table, 2);

alert(JSON.stringify(table, null, '  '));