You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/07-object-properties/01-property-descriptors/article.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ We didn't see them yet, because generally they do not show up. When we create a
19
19
20
20
First, let's see how to get those flags.
21
21
22
-
The method [Object.getOwnPropertyDescriptor](mdn:js/Object/getOwnPropertyDescriptor) allows to query the *full* information about a property.
22
+
The method [Object.getOwnPropertyDescriptor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor) allows to query the *full* information about a property.
To change the flags, we can use [Object.defineProperty](mdn:js/Object/defineProperty).
57
+
To change the flags, we can use [Object.defineProperty](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty).
58
58
59
59
The syntax is:
60
60
@@ -274,7 +274,7 @@ We can change `writable: true` to `false` for a non-configurable property, thus
274
274
275
275
## Object.defineProperties
276
276
277
-
There's a method [Object.defineProperties(obj, descriptors)](mdn:js/Object/defineProperties) that allows to define many properties at once.
277
+
There's a method [Object.defineProperties(obj, descriptors)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperties) that allows to define many properties at once.
278
278
279
279
The syntax is:
280
280
@@ -300,7 +300,7 @@ So, we can set many properties at once.
300
300
301
301
## Object.getOwnPropertyDescriptors
302
302
303
-
To get all property descriptors at once, we can use the method [Object.getOwnPropertyDescriptors(obj)](mdn:js/Object/getOwnPropertyDescriptors).
303
+
To get all property descriptors at once, we can use the method [Object.getOwnPropertyDescriptors(obj)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptors).
304
304
305
305
Together with `Object.defineProperties` it can be used as a "flags-aware" way of cloning an object:
306
306
@@ -326,24 +326,24 @@ Property descriptors work at the level of individual properties.
326
326
327
327
There are also methods that limit access to the *whole* object:
0 commit comments