fast-json-stable-stringify
fast-json-stable-stringify copied to clipboard
Optionally ignore array order
The proposal is to add an options optional object as the second function parameter. One of the options needed is the ignoreArrayOrder boolean, which would sort any array before or after stringifying it. This is useful when you have arrays that have the same content but might be in a different order, and you don't want to care about that in the return value.