let originalArray=[
[
"Test1",
"4",
"160496"
],
[
"Test2",
"6",
"38355"
],
[
"Test3",
"1",
"1221781"
],
[
"Test4",
"3",
"124315"
],
[
"Test5",
"5",
"29509"
],
[
"Test6",
"7",
"47742"
],
[
"Test7",
"2",
"231034"
]
]
I am looking to extract only the first two elements from each sub-array in the original array. For example:
[["Test1","4"],["Test2","6"],["Test3","1"],["Test4","3"],["Test5","5"],["Test6","7"],["Test7","2"]]