Skip to content

fix: 日本語表現 #359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 1-js/05-data-types/07-map-set/article.md
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ visitsCountMap.set(john, 123);
alert( visitsCountMap.get(john) ); // 123
```

オブジェクトをキーとして使用することは、最も注目に値する重要な `Map` の機能の1つです。同じことは `Object` ではカウントされません。`Object` ではキーとして文字列使用は問題ありませんが、キーとして別のオブジェクトを使用することはできません
オブジェクトをキーとして使用することは、最も注目に値する重要な `Map` の機能の1つです。同じことを `Object` で行うことはできません。`Object` ではキーとして文字列を使用することは問題ありませんが、オブジェクトを使用することはできません

やってみましょう:

2 changes: 1 addition & 1 deletion 1-js/05-data-types/08-weakmap-weakset/article.md
Original file line number Diff line number Diff line change
@@ -248,7 +248,7 @@ obj = null;
- オブジェクトは、別の場所から到達可能である間、`Set` に存在します。
- `Set` 同様、`add`, `has`, `delete` をサポートしますが、`size`, `keys()` とイテレーションはサポートしません。

"弱い" ので、追加の格納場所としても使えます。ですが、任意のデータではなく、むしろ "はい/いいえ" の事実のためです。`WeakSet` のメンバーはオブジェクトについてなにかを意味する場合があります。
"弱い" ので、追加の格納場所としても使えます。ですが、任意のデータではなく、むしろ "はい/いいえ" という boolean ライクな情報を記憶するためのものとしてです。`WeakSet` のメンバーはオブジェクトについてなにかを意味する場合があります。

例えば、ユーザを `WeakSet` に追加して、サイトにアクセスしたユーザを追跡できます。: