Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
isDirty (key) {
if (!key) {
return Object.keys(this).some((key) => this.isDirty(key))
}
if (!this[key] && !this.__signatures[key]) {
return false
}
return this.__signatures[key] !== sigmund(this[key])
}
}
this.__signatures = map(this, (key, value) => sigmund(value))
}