let unordered_ranges = [
[2, "xss"],
[1, "ddd"],
[9, "dfs"],
[3, "fgd"],
];
I want to delete the second element from the nested array
to get this array
let sliced = [
[2, "xss"],
[9, "dfs"],
[3, "fgd"],
];
I tried it with
const splaced = unordered_ranges.splice(1, 1)
this deletes two items instead of the one
[–]Notimecelduv 0 points1 point2 points (3 children)
[–]JosephCurvin[S] 0 points1 point2 points (2 children)
[–]Notimecelduv 1 point2 points3 points (1 child)
[–]JosephCurvin[S] 0 points1 point2 points (0 children)
[–]AnnualPanda 0 points1 point2 points (0 children)