Repository URL to install this package:
|
Version:
4.0.3 ▾
|
import { isStringPrimitive } from 'exotic'
export function toStringy(x: string | any): string {
return isStringPrimitive(x) ? x : JSON.stringify(x)
}