Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions docs/compat/reference/object/entries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
redirect: /compat/reference/object/toPairs.html
---

# entries (Lodash Compatibility)

`entries` is an alias of [`toPairs`](./toPairs.md). See the [`toPairs`](./toPairs.md) documentation for details.
7 changes: 7 additions & 0 deletions docs/compat/reference/object/entriesIn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
redirect: /compat/reference/object/toPairsIn.html
---

# entriesIn (Lodash Compatibility)

`entriesIn` is an alias of [`toPairsIn`](./toPairsIn.md). See the [`toPairsIn`](./toPairsIn.md) documentation for details.
4 changes: 4 additions & 0 deletions docs/compat/reference/object/toPairs.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ toPairs(undefined);
// => []
```

#### Alias

`entries`

#### Parameters

- `object` (`object`): The object, Map, or Set to convert.
Expand Down
4 changes: 4 additions & 0 deletions docs/compat/reference/object/toPairsIn.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ toPairsIn(set);
// => [[1, 1], [2, 2], [3, 3]]
```

#### Alias

`entriesIn`

#### Parameters

- `object` (`object`): The object, Map, or Set to convert.
Expand Down
7 changes: 7 additions & 0 deletions docs/ja/compat/reference/object/entries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
redirect: /ja/compat/reference/object/toPairs.html
---

# entries (Lodash 互換性)

`entries` は [`toPairs`](./toPairs.md) のエイリアスです。詳細は [`toPairs`](./toPairs.md) のドキュメントを参照してください。
7 changes: 7 additions & 0 deletions docs/ja/compat/reference/object/entriesIn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
redirect: /ja/compat/reference/object/toPairsIn.html
---

# entriesIn (Lodash 互換性)

`entriesIn` は [`toPairsIn`](./toPairsIn.md) のエイリアスです。詳細は [`toPairsIn`](./toPairsIn.md) のドキュメントを参照してください。
4 changes: 4 additions & 0 deletions docs/ja/compat/reference/object/toPairs.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ toPairs(undefined);
// => []
```

#### エイリアス

`entries`

#### パラメータ

- `object` (`object`): 変換するオブジェクト、Map、または Set。
Expand Down
4 changes: 4 additions & 0 deletions docs/ja/compat/reference/object/toPairsIn.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ toPairsIn(set);
// => [[1, 1], [2, 2], [3, 3]]
```

#### エイリアス

`entriesIn`

#### パラメータ

- `object` (`object`): 変換するオブジェクト、Map、または Set。
Expand Down
7 changes: 7 additions & 0 deletions docs/ko/compat/reference/object/entries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
redirect: /ko/compat/reference/object/toPairs.html
---

# entries (Lodash 호환성)

`entries`는 [`toPairs`](./toPairs.md)의 별칭이에요. 자세한 내용은 [`toPairs`](./toPairs.md) 문서를 참고하세요.
7 changes: 7 additions & 0 deletions docs/ko/compat/reference/object/entriesIn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
redirect: /ko/compat/reference/object/toPairsIn.html
---

# entriesIn (Lodash 호환성)

`entriesIn`은 [`toPairsIn`](./toPairsIn.md)의 별칭이에요. 자세한 내용은 [`toPairsIn`](./toPairsIn.md) 문서를 참고하세요.
4 changes: 4 additions & 0 deletions docs/ko/compat/reference/object/toPairs.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ toPairs(undefined);
// => []
```

#### 별칭

`entries`

#### 파라미터

- `object` (`object`): 변환할 객체, Map, 또는 Set이에요.
Expand Down
4 changes: 4 additions & 0 deletions docs/ko/compat/reference/object/toPairsIn.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ toPairsIn(set);
// => [[1, 1], [2, 2], [3, 3]]
```

#### 별칭

`entriesIn`

#### 파라미터

- `object` (`object`): 변환할 객체, Map, 또는 Set이에요.
Expand Down
7 changes: 7 additions & 0 deletions docs/zh_hans/compat/reference/object/entries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
redirect: /zh_hans/compat/reference/object/toPairs.html
---

# entries (Lodash 兼容性)

`entries` 是 [`toPairs`](./toPairs.md) 的别名。详细信息请参阅 [`toPairs`](./toPairs.md) 文档。
7 changes: 7 additions & 0 deletions docs/zh_hans/compat/reference/object/entriesIn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
redirect: /zh_hans/compat/reference/object/toPairsIn.html
---

# entriesIn (Lodash 兼容性)

`entriesIn` 是 [`toPairsIn`](./toPairsIn.md) 的别名。详细信息请参阅 [`toPairsIn`](./toPairsIn.md) 文档。
4 changes: 4 additions & 0 deletions docs/zh_hans/compat/reference/object/toPairs.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ toPairs(undefined);
// => []
```

#### 别名

`entries`

#### 参数

- `object` (`object`): 要转换的对象、Map 或 Set。
Expand Down
4 changes: 4 additions & 0 deletions docs/zh_hans/compat/reference/object/toPairsIn.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ toPairsIn(set);
// => [[1, 1], [2, 2], [3, 3]]
```

#### 别名

`entriesIn`

#### 参数

- `object` (`object`): 要转换的对象、Map 或 Set。
Expand Down
2 changes: 2 additions & 0 deletions src/compat/compat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ export { cloneWith } from './object/cloneWith.ts';
export { create } from './object/create.ts';
export { defaults } from './object/defaults.ts';
export { defaultsDeep } from './object/defaultsDeep.ts';
export { entries } from './object/entries.ts';
export { entriesIn } from './object/entriesIn.ts';
export { extend } from './object/extend.ts';
export { extendWith } from './object/extendWith.ts';
export { findKey } from './object/findKey.ts';
Expand Down
9 changes: 9 additions & 0 deletions src/compat/object/entries.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { describe, expect, it } from 'vitest';
import { entries } from './entries';
import { toPairs } from './toPairs';

describe('entries', () => {
it('should be an alias of toPairs', () => {
expect(entries).toBe(toPairs);
});
});
1 change: 1 addition & 0 deletions src/compat/object/entries.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { toPairs as entries } from './toPairs.ts';
9 changes: 9 additions & 0 deletions src/compat/object/entriesIn.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { describe, expect, it } from 'vitest';
import { entriesIn } from './entriesIn';
import { toPairsIn } from './toPairsIn';

describe('entriesIn', () => {
it('should be an alias of toPairsIn', () => {
expect(entriesIn).toBe(toPairsIn);
});
});
1 change: 1 addition & 0 deletions src/compat/object/entriesIn.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { toPairsIn as entriesIn } from './toPairsIn.ts';
2 changes: 2 additions & 0 deletions tests/types/compat.spec-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ describe('es-toolkit/compat', () => {
expectTypeOf(compat.create).toEqualTypeOf<typeof lodash.create>();
expectTypeOf(compat.defaults).toEqualTypeOf<typeof lodash.defaults>();
expectTypeOf(compat.defaultsDeep).toEqualTypeOf<typeof lodash.defaultsDeep>();
expectTypeOf(compat.entries).toEqualTypeOf<typeof lodash.entries>();
expectTypeOf(compat.entriesIn).toEqualTypeOf<typeof lodash.entriesIn>();
expectTypeOf(compat.extend).toEqualTypeOf<typeof lodash.extend>();
expectTypeOf(compat.extendWith).toEqualTypeOf<typeof lodash.extendWith>();
expectTypeOf(compat.findKey).toEqualTypeOf<typeof lodash.findKey>();
Expand Down