You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
261 B

var prop,
answer;
var foo = { answer: 'wrong' };
var bar = { answer: 'right' };
if ( typeof bar === "object" ) {
for ( prop in bar ) {
if ( bar.hasOwnProperty(prop) ) {
foo[prop] = bar[prop];
}
}
}
answer = getAnswer( foo );
export default answer;