@ac-essentials/misc-util
    Preparing search index...

    Function jsonMakeBigIntReplacerFunction

    • Create a JSON replacer function that converts BigInt values to either numbers (if within safe range) or strings.

      This function can be used as a base replacer to ensure that BigInt values are properly handled during JSON serialization, and can be combined with a user-defined replacer for additional customization.

      Parameters

      • Optionalreplacer: JsonReplacer

        An optional user-defined replacer (function or property list) to apply after the BigInt replacer.

      Returns JsonReplacerFunction

      A JSON replacer function that handles BigInt values and applies the user-defined replacer if provided.