Function set
- set<T, P>(target, propertyKey, value, receiver?): boolean
Type Parameters
- T extends object
- P extends PropertyKey
Parameters
Returns boolean
- set(target, propertyKey, value, receiver?): boolean
Parameters
- target: object
- propertyKey: PropertyKey
- value: any
Optional
receiver: any
Returns boolean
Sets the property of target, equivalent to
target[propertyKey] = value
whenreceiver === target
.