@technobuddha/library
Version:
A large library of useful functions
17 lines (16 loc) • 596 B
TypeScript
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;