UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

20 lines 449 B
//#region src/array/join.d.ts /** * `join(array, separator)` * * Joins all elements of `array` into a string, separated by the specified `separator`. * * ```ts * join([1, 2, 3], ", "); // "1, 2, 3" * ``` * * ```ts * pipe([1, 2, 3], join(", ")); // "1, 2, 3" * ``` */ declare const join: { <T>(separator: string): (target: readonly T[]) => string; <T>(target: readonly T[], separator: string): string; }; //#endregion export { join };