I have two arrays in an App Script project, one with a user email and their last login date, and one with their email and license type. I'd like to combine these two arrays into an array where each item has their email, last login, and license.
It's not guaranteed that the arrays will be in the same order.
Example:
Array 1: [[google.user@domain.com, Google-Apps, 1010020020],[google.user2@domain.com, Google-Apps, 1010020020]
Array 2: [[google.user2@domain.com, 12/31/1969],[google.user@domain.com, 12/31/1969]]
becomes
Array 3: [[google.user@domain.com, 12/31/1969, Google-Apps, 1010020020],[google.user2@domain.com, 12/31/1969, Google-Apps, 1010020020]]
I tried several of the methods described in this post and this post but they seem to be ES6 and throw errors when I run them.