Merge pull request #2963 from Luca1152/patch-2

Fix grammar in 'Symbol type' article
This commit is contained in:
Ilya Kantor 2022-05-03 23:49:41 +04:00 committed by GitHub
commit 5015a76c9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -238,7 +238,7 @@ alert( Symbol.keyFor(sym2) ); // id
The `Symbol.keyFor` internally uses the global symbol registry to look up the key for the symbol. So it doesn't work for non-global symbols. If the symbol is not global, it won't be able to find it and returns `undefined`. The `Symbol.keyFor` internally uses the global symbol registry to look up the key for the symbol. So it doesn't work for non-global symbols. If the symbol is not global, it won't be able to find it and returns `undefined`.
That said, any symbols have `description` property. That said, all symbols have the `description` property.
For instance: For instance: