Closed smolattack closed 1 year ago
import {stringify} from "superjson" const str = stringify({a: 1, b:2}) // str is '{"json":{"a":1,"b":2}}'
Could str ever be '{"json":{"b":2,"a":1}}'?
str
Thanks
I wouldn't depend on that, since it depends on the behaviour of a number of platform primitives like JSON.stringify or Object.entries, which could be different e.g. between Node.js and Deno.
JSON.stringify
Object.entries
Could
str
ever be '{"json":{"b":2,"a":1}}'?Thanks