Javascript – How can filter the sub-arrays inside an array?
This is my array. I want to get the sub-arrays where the first element is "admin". const array = [["admin", 1234], ["user", 999], ["admin", 5555]]; The expected output should look like this: [admin,1234], [admin,5555]