Merge pull request #1650 from javascript-tutorial/paroche-patch-7

Update article.md
This commit is contained in:
Ilya Kantor 2019-12-02 09:56:32 +03:00 committed by GitHub
commit 4dcc05d972
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ Object.defineProperty(obj, propertyName, descriptor)
: The object and its property to apply the descriptor. : The object and its property to apply the descriptor.
`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`. 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`.