I want to do the following:
// an object
var object = {
one: null,
two: null,
three: null
};
// an array
var array = ['this is one', 'this is two', 'this is three'];
I now want to merge them both together so I get;
var merged = {
one: 'this is one',
two: 'this is two',
three: 'this is three'
};
I don't want to use any 3rd library just pure javascript (ECMA5).
So what is the trick?
Regards, bodo