style: Fix prettier

This commit is contained in:
Sojin Park 2024-10-03 18:04:32 +09:00
parent 98f71ff7fa
commit aca23abae5
3 changed files with 6 additions and 7 deletions

View File

@ -1,10 +1,10 @@
import { bench, describe } from 'vitest';
import { isMap as isMapToolkit_ } from 'es-toolkit';
import { isMap as isMapToolkitCompat_ } from 'es-toolkit/compat'
import { isMap as isMapToolkitCompat_ } from 'es-toolkit/compat';
import { isMap as isMapLodash_ } from 'lodash';
const isMapToolkit = isMapToolkit_;
const isMapToolkitCompat = isMapToolkitCompat_ ;
const isMapToolkitCompat = isMapToolkitCompat_;
const isMapLodash = isMapLodash_;
describe('isMap', () => {

View File

@ -51,11 +51,11 @@ const combined = flowRight(square, add);
console.log(combined(1, 2)); // 9
```
## Lodash 互換性
## Lodash 互換性
`es-toolkit/compat` から `flowRight` をインポートすると、Lodash と互換になります。
- `flowRight` は関数の配列と個別の関数の両方を引数として受け入れます。
- `flowRight` は関数の配列と個別の関数の両方を引数として受け入れます。
- 提供された関数が関数でない場合、`flowRight` はエラーをスローします。
```typescript

View File

@ -51,8 +51,7 @@ const combined = flowRight(square, add);
console.log(combined(1, 2)); // 9
```
## Lodash와 호환성
## Lodash와 호환성
`es-toolkit/compat`에서 `flowRight`를 가져오면 lodash와 완전히 호환돼요.
@ -68,4 +67,4 @@ const double = (n: number) => n * 2;
const combined = flowRight(double, [square, add]);
console.log(combined(1, 2)); // => 18
```
```