UNPKG

@sciactive/splitn

Version:

A split function that returns [limit] elements, the last being the remainder.

3 lines (2 loc) 122 B
export declare function splitn(str: string, delimiter: string | RegExp, limit?: number): string[]; export default splitn;