I have an array of arrays in TypesScript and I want to splice it to get the first element of each sub-array. This isn't that hard of a task but I want a concise way of doing it.
Here is a Python example of what I want in TypeScript:
l1 = [[1,2],[3,4],[5,6]]
l2 = [i[0] for i in l1]
print(l2) # [1, 3, 5]
map()? You want more concise than that?