β
JSON.stringify({ a: 10, b: 20 }) === JSON.stringify({ b: 20, a: 10 }) // false
β Yeah, perfectly fineπ
β Try this if you don't want to import a lib, copypaste after line 118
https://gist.github.com/Floofies/6e7a41f369a40e336d4f579911c74a7f#file-bits-js-L118
Message permanent page
β That func is used to test the other diff func π
β Not cyclic reference proof though, the other one is
β It's more simple of an algorithm with no external state
β So it's good to use to test the more complex one
β It shouldn't be very hard to add cyclic support