- safeSetProperty<T, K>(object, prop, value, allowWritable?, allowAny?): boolean
Type Parameters
T
K extends string | number | symbol
Parameters
object: T
prop: K
value: NonNullable<T>[K]
allowWritable: boolean = true
allowAny: boolean = false
Returns boolean
Set value only if setter exists