%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home2/rezakur1/ai.rezakurnia.com/zh-router-frontend/node_modules/es-toolkit/dist/fp/array/
Upload File :
Create Path :
Current File : //home2/rezakur1/ai.rezakurnia.com/zh-router-frontend/node_modules/es-toolkit/dist/fp/array/join.js

// src/fp/array/join.ts
/**
* Creates a function that joins array values into a string.
*
* The separator is passed to Array.prototype.join, so undefined uses a comma.
* Use the returned function with {@link pipe}.
*
* @template T - The type of elements in the array.
* @param separator - The separator placed between values.
* @returns A function that maps a readonly array to a joined string.
*
* @example
* import { join, pipe } from 'es-toolkit/fp';
*
* pipe(['a', 'b', 'c'], join('-'));
* // => 'a-b-c'
*/
function join(separator) {
	return function(array) {
		return array.join(separator);
	};
}
exports.join = join;

Zerion Mini Shell 1.0