fix(join): Move join to compat

This commit is contained in:
raon0211 2024-09-12 22:19:10 +09:00
parent 18b0895048
commit 9d3918adc2
9 changed files with 28 additions and 3 deletions

View File

@ -1,5 +1,11 @@
# join # join
::: info
この関数は互換性のために `es-toolkit/compat` からのみインポートできます。代替可能なネイティブ JavaScript API があるか、まだ十分に最適化されていないためです。
`es-toolkit/compat` からこの関数をインポートすると、[lodash と完全に同じように動作](../../../compatibility.md)します。
:::
配列の要素を文字列に結合します。 配列の要素を文字列に結合します。
## インターフェース ## インターフェース

View File

@ -1,5 +1,11 @@
# join # join
::: info
이 함수는 호환성을 위한 `es-toolkit/compat` 에서만 가져올 수 있어요. 대체할 수 있는 네이티브 JavaScript API가 있거나, 아직 충분히 최적화되지 않았기 때문이에요.
`es-toolkit/compat`에서 이 함수를 가져오면, [lodash와 완전히 똑같이 동작](../../../compatibility.md)해요.
:::
배열의 요소를 문자열로 결합해요. 배열의 요소를 문자열로 결합해요.
## 인터페이스 ## 인터페이스

View File

@ -1,5 +1,11 @@
# join # join
::: info
This function is only available in `es-toolkit/compat` for compatibility reasons. It either has alternative native JavaScript APIs or isnt fully optimized yet.
When imported from `es-toolkit/compat`, it behaves exactly like lodash and provides the same functionalities, as detailed [here](../../../compatibility.md).
:::
Joins elements of an array into a string. Joins elements of an array into a string.
## Signature ## Signature

View File

@ -1,5 +1,12 @@
# join # join
::: info
出于兼容性原因,此函数仅在 `es-toolkit/compat` 中提供。它可能具有替代的原生 JavaScript API或者尚未完全优化。
`es-toolkit/compat` 导入时,它的行为与 lodash 完全一致,并提供相同的功能,详情请见 [这里](../../../compatibility.md)。
:::
将数组中的元素连接成一个字符串。 将数组中的元素连接成一个字符串。
## 签名 ## 签名

View File

@ -22,7 +22,6 @@ export { intersection } from './intersection.ts';
export { intersectionBy } from './intersectionBy.ts'; export { intersectionBy } from './intersectionBy.ts';
export { intersectionWith } from './intersectionWith.ts'; export { intersectionWith } from './intersectionWith.ts';
export { isSubset } from './isSubset.ts'; export { isSubset } from './isSubset.ts';
export { join } from './join.ts';
export { keyBy } from './keyBy.ts'; export { keyBy } from './keyBy.ts';
export { last } from './last.ts'; export { last } from './last.ts';
export { maxBy } from './maxBy.ts'; export { maxBy } from './maxBy.ts';

View File

@ -35,13 +35,14 @@ export { findLastIndex } from './array/findLastIndex.ts';
export { flatten } from './array/flatten.ts'; export { flatten } from './array/flatten.ts';
export { flattenDeep } from './array/flattenDeep.ts'; export { flattenDeep } from './array/flattenDeep.ts';
export { flattenDepth } from './array/flattenDepth.ts'; export { flattenDepth } from './array/flattenDepth.ts';
export { indexOf } from './array/indexOf.ts';
export { join } from './array/join.ts';
export { orderBy } from './array/orderBy.ts'; export { orderBy } from './array/orderBy.ts';
export { sortBy } from './array/sortBy.ts'; export { sortBy } from './array/sortBy.ts';
export { size } from './array/size.ts'; export { size } from './array/size.ts';
export { some } from './array/some.ts'; export { some } from './array/some.ts';
export { zipObjectDeep } from './array/zipObjectDeep.ts'; export { zipObjectDeep } from './array/zipObjectDeep.ts';
export { head as first } from '../array/head.ts'; export { head as first } from '../array/head.ts';
export { indexOf } from './array/indexOf.ts';
export { ary } from './function/ary.ts'; export { ary } from './function/ary.ts';
export { bind } from './function/bind.ts'; export { bind } from './function/bind.ts';

View File

@ -1,5 +1,5 @@
/** /**
Creates a new function that spreads elements of an array argument into individual arguments * Creates a new function that spreads elements of an array argument into individual arguments
* for the original function. * for the original function.
* *
* @template F - A function type with any number of parameters and any return type. * @template F - A function type with any number of parameters and any return type.