Preview environment

function isJSONEncodable

export declare function isJSONEncodable(maybeEncodable: unknown): maybeEncodable is JSONEncodable<unknown>;

Indicates if an object is encodable or not.

Parameters

maybeEncodable: unknown
The object to check against