Returns true if a & b are the same initial model, ignoring variants created by withSchema, withScope, and the like.
The difference with doing a === b is that this method will also return true if one of the models is scoped, or a variant with a different schema.
a === b
isSameInitialModel(a, a.withScope('myScope')) // true;
Generated using TypeDoc
Returns true if a & b are the same initial model, ignoring variants created by withSchema, withScope, and the like.
The difference with doing
a === b
is that this method will also return true if one of the models is scoped, or a variant with a different schema.Example