I have an array looking like this: [Screenshot]
▼[Array(5)]
▼0: Array(5)
0: pfQ1A3M0S1V6icGcLKTIdBoIWA42
1: 0rrfZUw6RAcSxoAknCJJ6GGgB9y1
2: 6RXWFEsEMdZWJTeUN3wMAj1PzYu2
3: QK39c753XUP7MbqVbMObSYPdmKB2
4: r8sN2eYtBTSvFSVunQQ71nxAGbO2
length: 5
▶__proto__: Array(0)
length: 1
▶__proto_: Array(0)
▼(2) [Array(5), "XG9oznIXpucqPFekDrGm6ixpctt2"]
▶0: (5) ["0rrfZUw6RAcSxoAknCJJ6GGgB9y1", "0rrfZUw6RAcSxoAknCJJ6GGgB9y1", …] // From first array
1: "XG9oznIXpucqPFekDrGm6ixpctt2"
length: 2
▶__proto:__ Array(0)
This is my code:
this.old = this.checFilter.map(r=>r.userId);
this.checked.push(this.old);
console.log(this.checked);
As you can see, I have 5 arrays in first array. And then I am pushing it to an other array. Result is showing 2 arrays after push. But I need to have an array with 6 entries as a result.
concat