Corrected grammar
This commit is contained in:
parent
74e6955587
commit
7aa1e0f625
1 changed files with 3 additions and 4 deletions
|
@ -298,14 +298,13 @@ Property descriptors work at the level of individual properties.
|
|||
There are also methods that limit access to the *whole* object:
|
||||
|
||||
[Object.preventExtensions(obj)](mdn:js/Object/preventExtensions)
|
||||
: Forbids to add properties to the object.
|
||||
: Forbids the addition of new properties to the object.
|
||||
|
||||
[Object.seal(obj)](mdn:js/Object/seal)
|
||||
: Forbids to add/remove properties, sets for all existing properties `configurable: false`.
|
||||
: Forbids adding/removing of properties. Sets `configurable: false` for all existing properties.
|
||||
|
||||
[Object.freeze(obj)](mdn:js/Object/freeze)
|
||||
: Forbids to add/remove/change properties, sets for all existing properties `configurable: false, writable: false`.
|
||||
|
||||
: Forbids adding/removing/changing of properties. Sets `configurable: false, writable: false` for all existing properties.
|
||||
And also there are tests for them:
|
||||
|
||||
[Object.isExtensible(obj)](mdn:js/Object/isExtensible)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue