We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
splitEvery
splitEvery takes 2 arguments and is curried so the following is possible:
splitEvery(2, [1,2,3,4,5,6]) splitEvery(2)([1,2,3,4,5,6])
However, your types are messed up making it hard to work with in TS:
export function splitEvery(a: number): { (list: string): string[]; <T>(list: readonly T[]): T[][]; }; export function splitEvery(a: number, list: string): string[]; export function splitEvery<T>(a: number, list: readonly T[]): T[][];
Should be corrected to:
export function splitEvery(a: number, list: string): string[]; export function splitEvery(a: number): (list: string) => string[] export function splitEvery<T>(a: number, list: readonly T[]): T[][]; export function splitEvery<T>(a: number): (list: readonly T[]) => T[][];
The text was updated successfully, but these errors were encountered:
No branches or pull requests
splitEvery
takes 2 arguments and is curried so the following is possible:However, your types are messed up making it hard to work with in TS:
Should be corrected to:
The text was updated successfully, but these errors were encountered: