@webdeveric/utils
    Preparing search index...

    Function isJSONable

    • Determine if input has a toJSON method that accepts zero or one arguments.

      Parameters

      • input: unknown

      Returns input is { toJSON: (key?: string) => JsonValue }

      isJSONable(new Date()); // true
      isJSONable({}); // false