In my use of xdiff, I need to deduce uniqueness from the "id" field, not __id__. I have seen it was one of your next amelioration.
How do you propose to go about it ?
I was thinking about:
var x = require('xdiff').withIdField('id')
var x = require('xdiff')
x.setIdField('id')
A bit uglier, add an idField parameter to all the functions defaulting to __id__ if not specified:
function shallowEqual (a, b, idField) {
...
In my use of xdiff, I need to deduce uniqueness from the
"id"field, not__id__. I have seen it was one of your next amelioration.How do you propose to go about it ?
I was thinking about:
A bit uglier, add an
idFieldparameter to all the functions defaulting to__id__if not specified: