Skip to content

Commit

Permalink
docs: Fix prettier of docs
Browse files Browse the repository at this point in the history
  • Loading branch information
raon0211 committed Dec 27, 2024
1 parent b4a668e commit 75ab3f8
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 16 deletions.
4 changes: 2 additions & 2 deletions docs/ja/reference/compat/function/nthArg.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function nthArg(n: number): (...args: any[]) => unknown;
### パラメータ

- `n` (`number`): 取得する引数のインデックス。
負の場合、引数リストの末尾から数えます。文字列。
負の場合、引数リストの末尾から数えます。文字列。

### 戻り値

Expand All @@ -35,4 +35,4 @@ console.log(result); // => 'b'
const getLastArg = nthArg(-1);
const result = getLastArg('a', 'b', 'c');
console.log(result); // => 'c'
```
```
2 changes: 1 addition & 1 deletion docs/ja/reference/compat/object/propertyOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ console.log(result); // => 3
const getValue = propertyOf({ a: { b: { c: 3 } } });
const result = getValue(['a', 'b', 'c']);
console.log(result); // => 3
```
```
5 changes: 1 addition & 4 deletions docs/ja/reference/object/findKey.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ function findKey<T extends Record<any, any>>(
conditionToFind: (value: T[keyof T], key: keyof T, obj: T) => boolean
): keyof T | undefined;
function findKey<T extends Record<any, any>>(obj: T, objectToFind: Partial<T[keyof T]>): keyof T | undefined;
function findKey<T extends Record<any, any>>(
obj: T,
propertyToFind: [keyof T[keyof T], any]
): keyof T | undefined;
function findKey<T extends Record<any, any>>(obj: T, propertyToFind: [keyof T[keyof T], any]): keyof T | undefined;
function findKey<T extends Record<any, any>>(obj: T, propertyToFind: keyof T[keyof T]): keyof T | undefined;
```

Expand Down
5 changes: 1 addition & 4 deletions docs/ko/reference/object/findKey.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ function findKey<T extends Record<any, any>>(
conditionToFind: (value: T[keyof T], key: keyof T, obj: T) => boolean
): keyof T | undefined;
function findKey<T extends Record<any, any>>(obj: T, objectToFind: Partial<T[keyof T]>): keyof T | undefined;
function findKey<T extends Record<any, any>>(
obj: T,
propertyToFind: [keyof T[keyof T], any]
): keyof T | undefined;
function findKey<T extends Record<any, any>>(obj: T, propertyToFind: [keyof T[keyof T], any]): keyof T | undefined;
function findKey<T extends Record<any, any>>(obj: T, propertyToFind: keyof T[keyof T]): keyof T | undefined;
```

Expand Down
4 changes: 2 additions & 2 deletions docs/reference/compat/function/nthArg.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function nthArg(n: number): (...args: any[]) => unknown;
### Parameters

- `n` (`number`): The index of the argument to retrieve.
If negative, counts from the end of the arguments list.
If negative, counts from the end of the arguments list.

### Returns

Expand All @@ -35,4 +35,4 @@ console.log(result); // => 'b'
const getLastArg = nthArg(-1);
const result = getLastArg('a', 'b', 'c');
console.log(result); // => 'c'
```
```
4 changes: 2 additions & 2 deletions docs/zh_hans/reference/compat/function/nthArg.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function nthArg(n: number): (...args: any[]) => unknown;
### 参数

- `n` (`number`): 要检索的参数的索引。
如果为负,则从参数列表的末尾开始计数。
如果为负,则从参数列表的末尾开始计数。

### 返回值

Expand All @@ -35,4 +35,4 @@ console.log(result); // => 'b'
const getLastArg = nthArg(-1);
const result = getLastArg('a', 'b', 'c');
console.log(result); // => 'c'
```
```
2 changes: 1 addition & 1 deletion docs/zh_hans/reference/compat/object/propertyOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ console.log(result); // => 3
const getValue = propertyOf({ a: { b: { c: 3 } } });
const result = getValue(['a', 'b', 'c']);
console.log(result); // => 3
```
```

0 comments on commit 75ab3f8

Please sign in to comment.