UNPKG

@technobuddha/library

Version:
17 lines (16 loc) 596 B
export declare type Options = { /** Conjunction to insert in the last position (default 'and') */ conjunction?: string; /** If true, use the oxford comma */ oxford?: boolean; /** String used to separate values (default ',') */ separator?: string; }; /** * Create a string from an array, separating values and inserting a conjunction * * @param input Array of values * @param __namedParameters see {@link Options} */ export declare function coordinate<T = unknown>(input: ArrayLike<T>, { conjunction, oxford, separator }?: Options): string; export default coordinate;