Preview:ts export const getValueByIdentifier = ( source: Record<string, unknown>, identifier: string ) => { return identifier .split(".") .reduce<unknown>( (prev, curr) => (prev || source)[curr], undefined ) }
You can choose specific lines to embed by selecting them before copying the link.