Documentation
    Preparing search index...

    Function parseJsonDefault

    • Function that does a JSON.parse() combined with a type check, taking a default value that is returned in case the JSON.parse() was unsuccessful

      Type Parameters

      • T

      Parameters

      • input: string
      • defaultValue: T
      • isT: (t: unknown) => t is T

      Returns T