UNPKG

typedash

Version:

modern, type-safe collection of utility functions

16 lines (15 loc) 716 B
import { t as AnyFunction } from "./AnyFunction-DygJG5Tn.js"; //#region src/types/_internal/NonFunction.d.ts type NonFunction<T> = Exclude<T, AnyFunction>; //#endregion //#region src/functions/join/join.d.ts /** * Same as `Array.prototype.join`, but allows specifying a non-`string` separator. * @param elements The elements to join. * @param separator The separator to use. * @returns An array with the elements joined by the separator. */ declare function join<T extends NonFunction<any>, U extends NonFunction<any>>(elements: readonly NonNullable<T>[], separator: U | ((index: number) => U)): Array<symbol | U | NonNullable<T>>; //#endregion export { join as t }; //# sourceMappingURL=join-C78Y_An9.d.ts.map