export function generalIdentifierToNumber ( identifier ) { if ( typeof identifier === "string" ) { return Number ( identifier ) ; } else { return identifier ; } } export function convertObjectToValue ( dataObject , namingConventions ) { return namingConventions . map ( name => dataObject [ name ] || null ) . find ( value => ! ! value ) as unknown ; }