mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-24 03:32:58 +03:00
fix(join): Move join to compat
This commit is contained in:
parent
18b0895048
commit
9d3918adc2
@ -1,5 +1,11 @@
|
||||
# join
|
||||
|
||||
::: info
|
||||
この関数は互換性のために `es-toolkit/compat` からのみインポートできます。代替可能なネイティブ JavaScript API があるか、まだ十分に最適化されていないためです。
|
||||
|
||||
`es-toolkit/compat` からこの関数をインポートすると、[lodash と完全に同じように動作](../../../compatibility.md)します。
|
||||
:::
|
||||
|
||||
配列の要素を文字列に結合します。
|
||||
|
||||
## インターフェース
|
@ -1,5 +1,11 @@
|
||||
# join
|
||||
|
||||
::: info
|
||||
이 함수는 호환성을 위한 `es-toolkit/compat` 에서만 가져올 수 있어요. 대체할 수 있는 네이티브 JavaScript API가 있거나, 아직 충분히 최적화되지 않았기 때문이에요.
|
||||
|
||||
`es-toolkit/compat`에서 이 함수를 가져오면, [lodash와 완전히 똑같이 동작](../../../compatibility.md)해요.
|
||||
:::
|
||||
|
||||
배열의 요소를 문자열로 결합해요.
|
||||
|
||||
## 인터페이스
|
@ -1,5 +1,11 @@
|
||||
# join
|
||||
|
||||
::: info
|
||||
This function is only available in `es-toolkit/compat` for compatibility reasons. It either has alternative native JavaScript APIs or isn’t 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.
|
||||
|
||||
## Signature
|
@ -1,5 +1,12 @@
|
||||
# join
|
||||
|
||||
::: info
|
||||
出于兼容性原因,此函数仅在 `es-toolkit/compat` 中提供。它可能具有替代的原生 JavaScript API,或者尚未完全优化。
|
||||
|
||||
从 `es-toolkit/compat` 导入时,它的行为与 lodash 完全一致,并提供相同的功能,详情请见 [这里](../../../compatibility.md)。
|
||||
|
||||
:::
|
||||
|
||||
将数组中的元素连接成一个字符串。
|
||||
|
||||
## 签名
|
@ -22,7 +22,6 @@ export { intersection } from './intersection.ts';
|
||||
export { intersectionBy } from './intersectionBy.ts';
|
||||
export { intersectionWith } from './intersectionWith.ts';
|
||||
export { isSubset } from './isSubset.ts';
|
||||
export { join } from './join.ts';
|
||||
export { keyBy } from './keyBy.ts';
|
||||
export { last } from './last.ts';
|
||||
export { maxBy } from './maxBy.ts';
|
||||
|
@ -35,13 +35,14 @@ export { findLastIndex } from './array/findLastIndex.ts';
|
||||
export { flatten } from './array/flatten.ts';
|
||||
export { flattenDeep } from './array/flattenDeep.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 { sortBy } from './array/sortBy.ts';
|
||||
export { size } from './array/size.ts';
|
||||
export { some } from './array/some.ts';
|
||||
export { zipObjectDeep } from './array/zipObjectDeep.ts';
|
||||
export { head as first } from '../array/head.ts';
|
||||
export { indexOf } from './array/indexOf.ts';
|
||||
|
||||
export { ary } from './function/ary.ts';
|
||||
export { bind } from './function/bind.ts';
|
||||
|
@ -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.
|
||||
*
|
||||
* @template F - A function type with any number of parameters and any return type.
|
||||
|
Loading…
Reference in New Issue
Block a user