source: node_modules/es-toolkit/dist/compat/array/join.d.ts@ a762898

Last change on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 587 bytes
Line 
1/**
2 * Joins elements of an array into a string.
3 *
4 * @param {ArrayLike<any> | null | undefined} array - The array to join.
5 * @param {string} [separator=','] - The separator used to join the elements, default is common separator `,`.
6 * @returns {string} - Returns a string containing all elements of the array joined by the specified separator.
7 *
8 * @example
9 * const arr = ["a", "b", "c"];
10 * const result = join(arr, "~");
11 * console.log(result); // Output: "a~b~c"
12 */
13declare function join(array: ArrayLike<any> | null | undefined, separator?: string): string;
14
15export { join };
Note: See TracBrowser for help on using the repository browser.