I am trying to merge the objects like as below
export const extractSourceOfData = (library, isJsonData) => { const id = isJsonData ? library?.sourceOfDat