Answers for "javascript zipping arrays to object"

0

javascript zipping arrays to object

var r = {},
    i,
    keys = ['one', 'two', 'three'],
    values = ['a', 'b', 'c'];

for (i = 0; i < keys.length; i++) {
    r[keys[i]] = values[i];
}
Posted by: Guest on June-23-2020

Code answers related to "javascript zipping arrays to object"

Code answers related to "Javascript"

Browse Popular Code Answers by Language