easyacres / LessonPlanFinder

1 stars 0 forks source link

Working API / Req / Key Pairs - #20

Open easyacres opened 4 years ago

easyacres commented 4 years ago

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign

Object Assign Copies the object. This object can then be pushed into mongo

const target = { a: 1, b: 2 }; const source = { b: 4, c: 5 };

const returnedTarget = Object.assign(target, source);

console.log(target); // expected output: Object { a: 1, b: 4, c: 5 }

console.log(returnedTarget); // expected output: Object { a: 1, b: 4, c: 5 }

hl748 commented 3 years ago

https://anapioficeandfire.com/ https://anapioficeandfire.com/Documentation