JSFiddle - React, Tailwind, and code Playground
by Sahin Deniz
JavaScript
let a = [
[
[1.1],
[1.2],
[1.3]
],
[
[2.1],
[2.2],
[2.3]
]
];
let b = a.slice(-1);
console.log(b.pop().pop());
console.log(a);
by Sahin Deniz
let a = [
[
[1.1],
[1.2],
[1.3]
],
[
[2.1],
[2.2],
[2.3]
]
];
let b = a.slice(-1);
console.log(b.pop().pop());
console.log(a);