Corrected grammar

This commit is contained in:
Alaa Bouayed 2019-04-21 22:23:13 +01:00 committed by GitHub
parent 74e6955587
commit 7aa1e0f625
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)