override-property-read
The override-property-read snippet overrides a property's value on the window object with a set of available properties.
Parameters
|
Name |
Description |
Mandatory |
|---|---|---|
|
property |
The name of the property or path (chain of properties separated by dots). |
Yes |
|
value |
The value to override the property with. |
Yes |
|
setConfigurable |
Value of the |
No |
Possible override values
|
Value |
Meaning |
|---|---|
|
|
|
|
|
false as boolean |
|
|
true as boolean |
|
|
"false" as string |
|
|
"true" as string |
|
|
|
|
|
Function with empty body |
|
|
Function returning true |
|
|
Function returning false |
|
|
Array with no elements |
|
|
Object with no properties |
|
|
Empty string |
|
|
|
|
Any arbitrary string |
|
Filter examples
|
Filter |
Result |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Debugging
|
Message |
When |
Definition |
|---|---|---|
|
|
Each time property is read |
The property is accessed. |
|
|
Before attaching to property |
Snippet is taking over the property getter. |