minor fix
This commit is contained in:
parent
bae0ef44d0
commit
69cd45773d
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ for (let key in user) {
|
||||||
|
|
||||||
...But that does not copy flags. So if we want a "better" clone then `Object.defineProperties` is preferred.
|
...But that does not copy flags. So if we want a "better" clone then `Object.defineProperties` is preferred.
|
||||||
|
|
||||||
Another difference is that `for..in` ignores symbolic properties, but `Object.getOwnPropertyDescriptors` returns *all* property descriptors including symbolic ones.
|
Another difference is that `for..in` ignores symbolic and non-enumerable properties, but `Object.getOwnPropertyDescriptors` returns *all* property descriptors including symbolic and non-enumerable ones.
|
||||||
|
|
||||||
## Sealing an object globally
|
## Sealing an object globally
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue