Coerces a value to a string using serialization if it is not nullish.
Optional
The value to coerce to a string
The stringified value, or an empty string if nullish
const str = asString({ a: 1 }); // '{"a":1}' Copy
const str = asString({ a: 1 }); // '{"a":1}'
Coerces a value to a string using serialization if it is not nullish.