I'm working with arrays of arrays in TypeScript and I'd like to efficiently splice them to retrieve the first element of each sub-array. While it's not a particularly difficult task, I'm looking for a more succinct approach.
Below is an example in Python that demonstrates what I'm trying to achieve in TypeScript:
l1 = [[1,2],[3,4],[5,6]]
l2 = [i[0] for i in l1]
print(l2) # [1, 3, 5]