@technobuddha/library
Version:
A large library of useful functions
11 lines (10 loc) • 456 B
TypeScript
/**
* Return a field from a delimited string
*
* @param input The delimited string
* @param delimiter The delimiter string
* @param index The position of the desired field, 0 is the first field, negative numbers count backwards from the end (default 0)
* @param count The number of fields to return (default 1)
*/
export declare function delimited(input: string, delimiter: string, index?: number, count?: number): string;
export default delimited;