UNPKG

everyutil

Version:

A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.

12 lines (11 loc) 413 B
/** * Rebuilds a string from tokens with a specified glue (separator). * * Example: detokenize(["Hello", "world"], " ") → "Hello world" * * @author @dailker * @param {string[]} tokens - Array of tokens. * @param {string} [glue=" "] - Separator to use between tokens. * @returns {string} The detokenized string. */ export declare function detokenize(tokens: string[], glue?: string): string;