I inherited some code in a React Native codebase and was just curious as to what this syntax means. Can't seem to find a good answer by googling but I have console logged it seems like:
const myObject = object2 ? ojbect2 : object1
Is similar to:
const myObject = { ...object1, ...object2}