Skip to content

Commit 6837f4e

Browse files
authored
Update article.md
Adding 'object' after 'Property descriptor' -- even though it is said not far above that the 'property descriptor' returned by `Object.getOwnPropertyDescriptor` is an object, I think it wouldn't hurt to discretely include that info here (though of course it's also implied by the usage in the examples). Especially if someone is quickly scanning the article looking for `Object.defineProperty` and didn't just read the part above.
1 parent 47d1865 commit 6837f4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • 1-js/07-object-properties/01-property-descriptors

1-js/07-object-properties/01-property-descriptors/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Object.defineProperty(obj, propertyName, descriptor)
6666
: The object and its property to apply the descriptor.
6767

6868
`descriptor`
69-
: Property descriptor to apply.
69+
: Property descriptor object to apply.
7070

7171
If the property exists, `defineProperty` updates its flags. Otherwise, it creates the property with the given value and flags; in that case, if a flag is not supplied, it is assumed `false`.
7272

0 commit comments

Comments
 (0)