What is the fastest algorithm for getting from something like this:
var array = [ [1,\'a\'], [2,\'b\'], [3,\'c\'] ];
to something like this
With Object.fromEntries, you can convert from Array to Object:
Array
Object
var array = [ [1, 'a'], [2, 'b'], [3, 'c'] ]; var object = Object.fromEntries(array); console.log(object);