Skip to content

Commit

Permalink
docs(isSubsetWith): Update docs (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
mass2527 authored Dec 4, 2024
1 parent 3e63b15 commit c93ff84
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/ja/reference/array/isSubsetWith.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 を返します。
```
4 changes: 2 additions & 2 deletions docs/ko/reference/array/isSubsetWith.md
Original file line number Diff line number Diff line change
Expand Up @@ -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를 반환해요.
```
4 changes: 2 additions & 2 deletions docs/reference/array/isSubsetWith.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
4 changes: 2 additions & 2 deletions docs/zh_hans/reference/array/isSubsetWith.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit c93ff84

Please sign in to comment.