Write a function, shallowObjectAssign that takes a "target" object and object to merge into the target object as arguments. The return value is the target object with all the properties of the second object argument. code example
Example: object.assign react js
'use strict';
let first = {name: 'Tony'};
let last = {lastName: 'Stark'};
let person = Object.assign(first, last);
ChromeSamples.log(person);
ChromeSamples.log(first);
let a = Object.assign({foo: 0}, {bar: 1}, {baz: 2});
ChromeSamples.log(a);
let b = Object.assign({foo: 0}, {foo: 1}, {foo: 2});
ChromeSamples.log(b);
let obj = {person: 'Thor Odinson'};
let samp = {person: 'ashok'};
let clone = Object.assign({}, obj, samp);
ChromeSamples.log(clone);