【发布时间】:2021-05-15 22:09:22
【问题描述】:
let array=[
[
"Test1",
"4",
"160496"
],
[
"Test2",
"6",
"38355"
],
[
"Test3",
"1",
"1221781"
],
[
"Test4",
"3",
"124315"
],
[
"Test5",
"5",
"29509"
],
[
"Test6",
"7",
"47742"
],
[
"Test7",
"2",
"231034"
]
]
我只需要数组数组中的前两个索引 例如:
[["Test1","4"],["Test2","6"],["Test3","1"],["Test4","3"],["Test5","5"],["Test6","7"],["Test7","2"]]
【问题讨论】:
标签: javascript arrays angular typescript