Evaluates a value or invokes a function with the provided arguments, stringifying the result.
A value or function to evaluate
Arguments forwarded to the function if val is callable
The stringified result
evaluateString('test'); // 'test'evaluateString((locale?: string) => locale === 'fr' ? 'Sud' : 'South', 'fr'); // 'Sud' Copy
evaluateString('test'); // 'test'evaluateString((locale?: string) => locale === 'fr' ? 'Sud' : 'South', 'fr'); // 'Sud'
Evaluates a value or invokes a function with the provided arguments, stringifying the result.