Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9461ef8

Browse filesBrowse files
Trotttargos
authored andcommitted
doc: remove "note that" from using-symbols.md
Refs: nodejs/remark-preset-lint-node#16 PR-URL: #28329 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent ffba80b commit 9461ef8
Copy full SHA for 9461ef8

File tree

Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed
Open diff view settings
Collapse file

‎doc/guides/using-symbols.md‎

Copy file name to clipboardExpand all lines: doc/guides/using-symbols.md
+1-3Lines changed: 1 addition & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbo
1414
## `Symbol(string)`
1515

1616
Symbols created via `Symbol(string)` are local to the caller function.
17-
Note that `Symbol('hello') !== Symbol('hello')`.
1817
For this reason, we often use them to simulate private fields, like so:
1918

2019
```js
@@ -31,8 +30,7 @@ class MyObject {
3130
module.exports.MyObject = MyObject;
3231
```
3332

34-
Note that Symbols are not _fully private_, as the data could be accessed
35-
anyway:
33+
Symbols are not fully private, as the data could be accessed anyway:
3634

3735
```js
3836
for (const s of Object.getOwnPropertySymbols(obj)) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.