Uneventful
    Preparing search index...

    Function stableJSON

    • Keep an expression's old value if its JSON string is the same as the new one.

      (Shorthand for stable() with a JSON-string comparison function.)

      Note that JSON string comparison is slow and memory intensive for more complex data structures, is order-sensitive for object keys, and doesn't support maps or sets. If you need any of those things, you should probably use a stabilizer() based on fast-equals instead.

      Type Parameters

      • R extends any

      Parameters

      • newVal: R

      Returns R