Function toStringOrdered

  • If input is a string, it is returned. Otherwise, it returns the result of JSON.stringify() with fields ordered.

    This allows for more consistent comparisons when object field orders are different but values the same.

    Parameters

    • itemToMakeStringFor: any

    Returns string