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.
This commit is contained in:
parent
47d186598a
commit
6837f4eb2e
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ Object.defineProperty(obj, propertyName, descriptor)
|
|||
: The object and its property to apply the descriptor.
|
||||
|
||||
`descriptor`
|
||||
: Property descriptor to apply.
|
||||
: Property descriptor object to apply.
|
||||
|
||||
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`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue