I have an array of objects structured like this:
[{ a: '1', b : '2'}, {a : '3', b : '4'}]
For the purpose of preparing data for insertion into database, I need a string of object values like this:
('1', '2'),('3', '4')
With the same ordering of values.. apart from the naive way of iterating through each object in array and constructing a string, is there a better much easier way of doing this?
joinon what keys?