dominictarr / hdiff

MIT License
19 stars 3 forks source link

possible to get boolean? #3

Open ralyodio opened 10 years ago

ralyodio commented 10 years ago

I always get a diff back. Is it possible to get true/false?

dominictarr commented 10 years ago

I don't know what you mean, can you explain what you mean with more detail?

ralyodio commented 10 years ago

I guess maybe I'm unclear. I'm looking for a way to tell if two objects are different. I would expect to get a true or false value.

reqshark commented 10 years ago

just use strict equality operator instead of a module if that's all u want... I'd prob go like:
console.log(JSON.stringify(a) === JSON.stringify(b))