From c93ff843ed56da5f8d4b20ec2f7a6a50e766c6bd Mon Sep 17 00:00:00 2001 From: Dongho Kim <70563791+mass2527@users.noreply.github.com> Date: Wed, 4 Dec 2024 10:15:17 +0900 Subject: [PATCH] docs(isSubsetWith): Update docs (#866) --- docs/ja/reference/array/isSubsetWith.md | 4 ++-- docs/ko/reference/array/isSubsetWith.md | 4 ++-- docs/reference/array/isSubsetWith.md | 4 ++-- docs/zh_hans/reference/array/isSubsetWith.md | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/ja/reference/array/isSubsetWith.md b/docs/ja/reference/array/isSubsetWith.md index a92ee5626..d44c4292d 100644 --- a/docs/ja/reference/array/isSubsetWith.md +++ b/docs/ja/reference/array/isSubsetWith.md @@ -27,13 +27,13 @@ const superset = [{ id: 1 }, { id: 2 }, { id: 3 }]; const subset = [{ id: 2 }, { id: 1 }]; const areItemsEqual = (a, b) => a.id === b.id; -isSubsetWith(superset1, subset1, areItemsEqual); +isSubsetWith(superset, subset, areItemsEqual); // true を返します。 const superset = [{ id: 1 }, { id: 2 }, { id: 3 }]; const subset = [{ id: 4 }]; const areItemsEqual = (a, b) => a.id === b.id; -isSubsetWith(superset2, subset2, areItemsEqual); +isSubsetWith(superset, subset, areItemsEqual); // false を返します。 ``` diff --git a/docs/ko/reference/array/isSubsetWith.md b/docs/ko/reference/array/isSubsetWith.md index a54c13b0e..33bd98389 100644 --- a/docs/ko/reference/array/isSubsetWith.md +++ b/docs/ko/reference/array/isSubsetWith.md @@ -27,13 +27,13 @@ const superset = [{ id: 1 }, { id: 2 }, { id: 3 }]; const subset = [{ id: 2 }, { id: 1 }]; const areItemsEqual = (a, b) => a.id === b.id; -isSubsetWith(superset1, subset1, areItemsEqual); +isSubsetWith(superset, subset, areItemsEqual); // true를 반환해요. const superset = [{ id: 1 }, { id: 2 }, { id: 3 }]; const subset = [{ id: 4 }]; const areItemsEqual = (a, b) => a.id === b.id; -isSubsetWith(superset2, subset2, areItemsEqual); +isSubsetWith(superset, subset, areItemsEqual); // false를 반환해요. ``` diff --git a/docs/reference/array/isSubsetWith.md b/docs/reference/array/isSubsetWith.md index e50796adf..d00584647 100644 --- a/docs/reference/array/isSubsetWith.md +++ b/docs/reference/array/isSubsetWith.md @@ -27,13 +27,13 @@ const superset = [{ id: 1 }, { id: 2 }, { id: 3 }]; const subset = [{ id: 2 }, { id: 1 }]; const areItemsEqual = (a, b) => a.id === b.id; -isSubsetWith(superset1, subset1, areItemsEqual); +isSubsetWith(superset, subset, areItemsEqual); // Return true const superset = [{ id: 1 }, { id: 2 }, { id: 3 }]; const subset = [{ id: 4 }]; const areItemsEqual = (a, b) => a.id === b.id; -isSubsetWith(superset2, subset2, areItemsEqual); +isSubsetWith(superset, subset, areItemsEqual); // Return false ``` diff --git a/docs/zh_hans/reference/array/isSubsetWith.md b/docs/zh_hans/reference/array/isSubsetWith.md index 3b6ef67f9..013d3b244 100644 --- a/docs/zh_hans/reference/array/isSubsetWith.md +++ b/docs/zh_hans/reference/array/isSubsetWith.md @@ -27,13 +27,13 @@ const superset = [{ id: 1 }, { id: 2 }, { id: 3 }]; const subset = [{ id: 2 }, { id: 1 }]; const areItemsEqual = (a, b) => a.id === b.id; -isSubsetWith(superset1, subset1, areItemsEqual); +isSubsetWith(superset, subset, areItemsEqual); // 返回 true const superset = [{ id: 1 }, { id: 2 }, { id: 3 }]; const subset = [{ id: 4 }]; const areItemsEqual = (a, b) => a.id === b.id; -isSubsetWith(superset2, subset2, areItemsEqual); +isSubsetWith(superset, subset, areItemsEqual); // 返回 false ```