Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setValue(value: Value) {
if (!is.num(value)) {
this._string = value
this._value = 1
} else if (super.setValue(value)) {
this._string = null
} else {
return false
}
return true
}