I'm not exactly sure how I should phrase it but basically I want to achieve such that object a:
var a = {
"test123": "A",
"testing/test": "B",
"notest": "C"
};
and object b:
var b = {
"test123": "Test 123",
"testing": "Testing"
};
combine such that there is an object c that looks like this:
var c = {
"Test 123": "A",
"Testing/test": "B",
"notest": "C"
};
I hope you understand what I'm talking about. Basically combine / replace objects a and b into a c such that only the text before / is replaced.
Thanks!
EDIT:
Just in case you don't get it, this is what I mean.
In object b, b['test123'] = 'Test 123' so that a['test123'] should turn into c['Test 123'] because it is changed based on b.
Also since b['testing'] = 'Testing', a['testing/test'] would turn into c['Testing/test'] as stated in b, just that the text after the / is not affected.
 
    